TestOut Linux Pro Practice Test 2026 – All-in-One Guide to Master Your Certification!

Session length

1 / 400

What command will show you your current working directory?

ls

cd

pwd

The command that shows your current working directory is "pwd," which stands for "print working directory." When executed, it outputs the full path of the directory you are currently in, allowing you to easily identify your location in the file system hierarchy.

The other commands serve different purposes: "ls" is used to list the contents of a directory, "cd" is the command for changing directories, and "whoami" displays the current user's username. None of these commands provide information about your current directory location, which is why "pwd" is the correct choice for this task.

Get further explanation with Examzify DeepDiveBeta

whoami

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy