The Linux CD command is the most common and basic command statement in Linux, and the application of other statements requires the assistance of the CD command, which is used to change the current directory.
Command format:
CD [Directory name]
Examples of commands:
1), CD- go back to your last directory
CD back to the user's home directory
CD ~ back to the user's home directory
Cd.. back to the parent directory of the current directory (the top level directory of the current directory)
Directory ofCD ~yonghu Yonghu
CD/ to root directory
Cd.. /.. /dir2/dir3 This relative path will move you up two levels, switch to the root directory, then go to dir3 and go to the DIR2 directory.
This article is from the "Eight Miles Bridge" blog, please be sure to keep this source http://baliq.blog.51cto.com/5984262/1688192
The CD command for the CentOS Linux system command