CompTIA
XK0-001 · Question #73
The current working directory is /var/spool/Tom/lp. What does the command "cd ~" do?
The correct answer is B. Returns the user to their home directory. CompTIA XK0-001 Exam
Linux System Administration
Question
The current working directory is /var/spool/Tom/lp. What does the command "cd ~" do?
Options
- AReturns the user to the root directory.
- BReturns the user to their home directory.
- CKeeps the user in their current directory.
- DReturns the user to the parent directory of "lp".
How the community answered
(35 responses)- A9% (3)
- B74% (26)
- C14% (5)
- D3% (1)
Explanation
CompTIA XK0-001 Exam
Topics
#Linux commands#home directory#shell navigation#cd command
Community Discussion
No community discussion yet for this question.