Linux under CD command
Function: Toggle the current working directory
Use format: cd [directory name] (CD and directory separated by spaces)
Common commands
1. Enter the user's home directory
Cd
CD $home
CD ~
The above three names can be implemented into the user's home directory of the task
2. return to the directory where it was before entering this directory
CD-
3. return to the parent directory
Cd..
If the current directory is "/", then the "/" after execution;
".." Meaning for the parent directory
4. return to the top level two directory;
Cd.. /..
5. Go to the system root directory
CD/
For example: cd/home/cc/it.dengchao.org, can go to the specified directory
6. Go to the directory under the current user directory
CD sys/....
Note: Fifth and six are the difference between the current dir front-end or not, and some to the root directory, none is based on the current user directory.
This article is from the "I have patience with myself" blog, please be sure to keep this source http://9607474.blog.51cto.com/9597474/1683152
CD switch working directory under Linux