TestOut Linux Pro Practice Test 2025 - Free Linux Pro Practice Questions and Study Guide

Question: 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

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy