nerdexam
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)
  • A
    9% (3)
  • B
    74% (26)
  • C
    14% (5)
  • D
    3% (1)

Explanation

CompTIA XK0-001 Exam

Topics

#Linux commands#home directory#shell navigation#cd command

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice