1. mkdir : Creating a directory
format: mkdir [OPTION] ... DIRECTORY ...
Options:
- m,--mode=mode setting permissions is equivalent to chmod
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/59/wKioL1XhqF6QuhRAAAGb0Mmpt0I614.jpg "title=" 1.png " alt= "Wkiol1xhqf6quhraaagb0mmpt0i614.jpg"/>
- P : Create multiple directories recursively
- V: Display Create directory information
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/5C/wKiom1Xhpo3iQm3aAADO30s18kU493.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1xhpo3iqm3aaado30s18ku493.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/59/wKioL1XhqKmzMfIWAAHXYQLFGzI195.jpg "style=" float: none; "title=" 3.png "alt=" Wkiol1xhqkmzmfiwaahxyqlfgzi195.jpg "/>
2. rmdir: Delete Empty directory
format: rmdir [OPTION] ... DIRECTORY ...
Options:
- P : Delete directory recursively
- v : Displays the Delete directory procedure
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/5C/wKiom1Xhpu7R_jSHAAH8gQMHQvI094.jpg "style=" float: none; "title=" 4.png "alt=" Wkiom1xhpu7r_jshaah8gqmhqvi094.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/59/wKioL1XhqQqBh14aAACihxf74M8419.jpg "style=" float: none; "title=" 5.png "alt=" Wkiol1xhqqqbh14aaacihxf74m8419.jpg "/>
3. Touch : Create an empty file or modify the timestamp of the file
format: touch [OPTION] ... FILE ...
Options:
-A Change access time only ( Atime ).
- C or --no-create no documents are created.
- D use the specified date time instead of the current time.
- M Change time only (mtime) .
- R sets the datetime of the specified document or directory to the same date and time as the reference document or directory.
- T use the specified date time instead of the current time.
4 , dirname and the basename
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/59/wKioL1XhqVehUWLTAADR9vQ0Pco214.jpg "title=" 6.png " alt= "Wkiol1xhqvehuwltaadr9vq0pco214.jpg"/>
This article is from the "Summer Month" blog, please make sure to keep this source http://lkc0110.blog.51cto.com/3410558/1689716
Summary of Linux commands (mkdir, rmdir, Touch, DirName, basename)