Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 3 (Q.No. 4)
4.
Which of the following command is used to go to home directory?
cd..
cd/
cd
cd HOME.
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Swetha said:   7 years ago
The cd has many useful options. You can see all of these options by entering man cd at the shell prompt. The most commonly used options are listed below.

cd " Returns you to your login directory.
cd - " Returns you to your previous working directory.
cd ~ " Also returns you to your login directory.
cd / " Takes you to the entire system's root directory.
cd /root " Takes you to the home directory of the root user. You must be the root user to access this directory.
cd /home " Takes you to the home directory, where user login directories are usually stored.
cd .. " Takes you to the directory one level up.

Ankur said:   9 years ago
No, this answer is wrong.

The correct option is B i.e. cd/.

Post your comments here:

Your comments will be displayed after verification.