Which command is used to display the current working directory in Linux?

Prepare for the LPI Linux Essentials Exam. Study with flashcards and multiple choice questions, each with hints and explanations. Get exam-ready!

The command used to display the current working directory in Linux is "pwd," which stands for "print working directory." When you run this command in the terminal, it outputs the full path of the directory you are currently in. This is particularly useful for users who navigate through different directories and want to confirm their location in the filesystem hierarchy.

The other options do not serve to display the current working directory: "current" and "showdir" are not standard commands in Linux, while "dir" is typically associated with displaying directory contents in Windows environments, not for showing the current directory path in Linux systems. Thus, "pwd" is the correct and standard command for this functionality in a Linux environment.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy