Linux command Rollup (mkdir, rmdir, Touch, dirname, basename)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.