Question: How to Change Directory in Linux Terminal?
Contents File & Directory Commands to Navigate into the Root Directory, Use “Cd /” to Navigate to Your Home Directory, Use “Cd” or “Cd ~” to Navigate up One...
Contents
File & Directory Commands
- To navigate into the root directory, use “cd /”
- To navigate to your home directory, use “cd” or “cd ~”
- To navigate up one directory level, use “cd ..”
- To navigate to the previous directory (or back), use “cd -“
What is the change directory command in Linux?
The cd command is used to change the current directory (i.e., the directory in which the user is currently working) in Linux and other Unix-like operating systems.
How do I change directory in terminal?
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 –