Linux Essentials (010-160) — Question 61
Which of the following commands shows the absolute path to the current working directory?
Answer options
- A. who
- B. cd ..
- C. pwd
- D. ls -l
- E. cd ~/home
Correct answer: C
Explanation
The command 'pwd' stands for 'print working directory' and it directly outputs the absolute path to the current directory. In contrast, 'who' displays logged-in users, 'cd ..' changes to the parent directory, 'ls -l' lists files in long format, and 'cd ~/home' changes to a specific directory without showing the current path.