How do I get to the root directory in Unix?

How do I get to the root directory in Unix?
Answer
The most commonly used options are listed below.
  1. cd — Returns you to your login directory.
  2. cd – — Returns you to your previous working directory.
  3. cd ~ — Also returns you to your login directory.
  4. cd / — Takes you to the entire system’s root directory.
  5. cd /root — Takes you to the home directory of the root user.
 

Tìm kiếm

Back
Top