Vidyalelo
Computer Science · Q101

UNIX

Engineering and GATE · Computer Science · question 101

Q101

Which of the following command is used to go to home directory?

A.
cd..
B.
cd/
C.
cd
Answer
D.
cd HOME.
E.
None of the above

Answer: Option C

Solution

Answer: Option C
Solution:
The cd command is used to change the current working directory. When used without any arguments, it takes you to your home directory.
Options A, B, and D are incorrect as they do not accurately represent the command to go to the home directory.