Linux Essentials (010-150) — Question 4
Which of the following are correct commands for changing the current directory to the user's home? (Choose TWO answers)
Answer options
- A. cd /home
- B. cd ~
- C. cd ..
- D. cd
- E. cd /
Correct answer: B, D
Explanation
The command 'cd ~' (option B) takes the user directly to their home directory, while 'cd' (option D) also defaults to the home directory if no argument is provided. Options A, C, and E do not specifically lead to the user's home directory; A leads to a standard home path, C moves up one directory level, and E directs to the root directory.