Question

Difficulty: EasymacOS and Linux Operating System Features and Tools

A technician needs to find the absolute directory path of the folder currently active in a Linux terminal session. Which command should the technician enter to display this information?

  1. pwdAnswer
  2. B
    ls
  3. C
    cd
  4. D
    dir

Answer

The command `pwd` (print working directory) is used to display the absolute path of the active working directory in a Linux shell.
The `pwd` command stands for 'print working directory' and outputs the full, absolute path of the current directory in Unix-like operating systems like Linux and macOS.

Step-by-Step Solution

1
Identify the goal
Determine the command that outputs the full path of the current active working directory.
The technician needs to know their exact location within the Linux file system hierarchy.
2
Evaluate standard Unix/Linux navigation commands
`pwd` stands for 'print working directory' and outputs the exact path to standard output.
`ls` lists directory contents, while `cd` changes the directory.

Key Concept

Linux Terminal Directory Navigation Tools
Rate this question