The use of UNIX mkdir commands

Source: Internet
Author: User
Tags create directory

[Syntax]: mkdir [-M mode] [-p] Directory name

[Note]: This command is used to establish the directory, the access mode of the directory is determined by the mask (umask), requires write permission to its parent directory, the UID and GID of the directory for the actual UID and GID
-M Create directory in specified access mode
-P establishes all of its nonexistent parent directories when the directory is created
[Example]:
mkdir tmp creating subdirectories in current directory TMP
Mkdir-m 777/TMP/ABC with all user-readable writable executable access modes
Set up directory/TMP/AAA, access mode See command chmod
Mkdir-p/tmp/a/b/c set up the directory/tmp/a/b/c, if there is no directory/tmp/a and/tmp/a/b

The use of UNIX mkdir commands

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.