How do I change directories in Linux terminal?

How do I change directories in Linux terminal?
Answer
How to change directory in Linux terminal
  • To return to the home directory immediately, use cd ~ OR cd.
  • To change into the root directory of Linux file system, use cd / .
  • To go into the root user directory, run cd /root/ as root user.
  • To navigate up one directory level up, use cd ..
  • To go back to the previous directory, use cd –
 

Tìm kiếm

Back
Top