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…
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)- A3% (1)
- B6% (2)
- C3% (1)
- D88% (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
Community Discussion
No community discussion yet for this question.