mkdir command for the CentOS Linux system command

Source: Internet
Author: User
Tags create directory

The command to create a directory in a Linux system is mkdir ("Makedirectory" abbreviation ).


1, 1 Create and Delete commands

1), create directory

Command format:

mkdir [ options ] directory

Parameter options:

-M,--mode=mode , set file permissions (like chomd), not a=rwx–umask.

-P,--Parents can be a path, the directory in this path does not exist and is created automatically.

-V,--verbose displays information about creating a directory

--help Help Information

--version output Version information

Command instance:

1), create an empty directory docment

command: mkdir docment

2), recursively create multiple directories docment/hao/files

command: mkdir–p docment/hao/files

3), create a directory user with the permissions of

command: mkdir–m user

4), create Test directory display information

command:mkdir–v test


This article is from the "Eight Miles Bridge" blog, please be sure to keep this source http://baliq.blog.51cto.com/5984262/1688217

mkdir command for the CentOS Linux system command

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.