Computer Science - Unix - Discussion

Discussion :: Unix - Section 3 (Q.No.4)

4. 

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

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

Answer: Option C

Explanation:

No answer description available for this question.

Ankur said: (Oct 27, 2016)  
No, this answer is wrong.

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

Swetha said: (Jun 21, 2018)  
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.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.