CompTIA A+ Core 2 (220-1102) — Question 432
Which of the following Linux commands would help to identify which directory the user is currently operating in?
Answer options
- A. pwd
- B. dig
- C. find
- D. cat
Correct answer: A
Explanation
The command 'pwd' stands for 'print working directory' and displays the path of the directory the user is currently in. The other commands, 'dig', 'find', and 'cat', serve different purposes such as DNS lookup, searching for files, and displaying file contents, respectively, and do not provide information about the current directory.