Pwd
Function: Displays the current directory
Note: When a user logs on, the home directory is the default. The root user's home directory is/root, and the normal user's home directory is in/home/username.
Instance:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/7E/wKiom1VKNBfyPcQfAACJgL0lzMI161.jpg "title=" Pwd.jpg "alt=" Wkiom1vknbfypcqfaacjgl0lzmi161.jpg "/>
Cd
Function: Switch the directory where
Options:
~: Enter the current user's home directory,CD ~ As the role of CD ;
-: Enter the last directory;
.. : Enter the upper level directory;
. : Enter your current directory.
Instance:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/7E/wKiom1VKNhKCgPoiAAF3h4OpgYU239.jpg "title=" cd.jpg "alt=" Wkiom1vknhkcgpoiaaf3h4opgyu239.jpg "/>
Tree
Function: Displays the number of directories for all content in the specified directory
NOTES: Tree [options] Directory name
Options:
-A: Lists all the files in the specified directory, the system default option is-A;
-D: Lists only the directories under the specified directory.
Instance:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/7A/wKioL1VKO1Xgi_b7AAGMUMJi0BY049.jpg "title=" Tree.jpg "alt=" Wkiol1vko1xgi_b7aagmumji0by049.jpg "/>
Mkdir
Role: Create a directory
Note: mkdir directory name
Options:
-P: Recursively create a directory
Instance:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/7A/wKioL1VKPFqh9qlGAAD9pH-Lalg534.jpg "title=" Mkdir.jpg "alt=" Wkiol1vkpfqh9qlgaad9ph-lalg534.jpg "/>
RmDir
Role: Delete directory (only empty directory)
Note: rmdir [options] Directory name
Options:
-P: Recursively Delete empty directories
Instance:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/7A/wKioL1VKPe7igLcJAAEaOpxjNWk383.jpg "title=" Rmdir.jpg "alt=" Wkiol1vkpe7iglcjaaeaopxjnwk383.jpg "/>
This article is from the Linux OPS blog, so be sure to keep this source http://jinghsy.blog.51cto.com/7648537/1643683
Linux Common Commands-01