Master Linux Like a Pro: Dive into the 2026 RHEL Red Hat Challenge!

Session length

1 / 20

Which of the following commands is used to display the current working directory in Linux?

pwd

The command that is used to display the current working directory in Linux is 'pwd'. This stands for "print working directory," and when executed in the terminal, it outputs the full pathname of the directory that you are currently in.

In contrast, 'cd' is the command used to change the current directory rather than display it. Although 'dir' and 'ls' are commands that list files and directories within the current directory, they do not provide the pathname of the current directory itself. Understanding these distinctions is crucial for navigating the Linux file system efficiently.

Get further explanation with Examzify DeepDiveBeta

cd

dir

ls

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy