nerdexam
CompTIA

220-1002 · Question #282

A technician is attempting to troubleshoot a Linux home folder issue, but does not remember which directory is current. Which of the following tools should the technician use to find the current…

The correct answer is D. pwd. 'pwd' stands for Print Working Directory. Running this command in a Linux terminal outputs the absolute path of the current directory the user is in. The other options do not serve this purpose: 'dir' is a Windows/DOS command used to list directory contents; 'sudo' is used to…

Hardware and network troubleshooting

Question

A technician is attempting to troubleshoot a Linux home folder issue, but does not remember which directory is current. Which of the following tools should the technician use to find the current directory?

Options

  • Adir
  • Bsudo
  • Ccd
  • Dpwd

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    88% (30)

Explanation

'pwd' stands for Print Working Directory. Running this command in a Linux terminal outputs the absolute path of the current directory the user is in. The other options do not serve this purpose: 'dir' is a Windows/DOS command used to list directory contents; 'sudo' is used to execute commands with elevated (superuser) privileges; and 'cd' is used to change directories, not to display the current one. When a technician is lost in a directory tree, 'pwd' is the first command to run to get oriented.

Topics

#Linux commands#pwd#directory navigation#command line

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice