mkdir Create Folder command in Linux

Source: Internet
Author: User
Grammar
mkdir (option) (parameter)
Options
-Z: Sets the security context, which is valid when SELinux is used;-m< target properties > or--mode< target properties > set directory permissions while setting directory;-P or--parents If the top-level directory to be set up is not currently established, the upper-level directory will be established;--version displays the version information.
Parameters
Table of Contents: Specifies a list of directories to create, separated by spaces between multiple directories.
Common examples

1. Create multiple folders under the current folder

2. Specify the absolute path to create the XXX folder, while the current path creates the VVV folder (extrapolate, you can also create folders at the same time multiple absolute paths)

3. Create a /qwd subdirectory in the directory test, and only the file owner has read, write and execute permissions, other people do not have access to

Mkdir-m 700/qwd/test


4. In the current directory to establish the TTT directory under/QXC and QXC, the permissions set to the main file readable, write, execute, the same group of users can read and execute, other users do not have access to

Mkdir-p-M QXC/TTT


mkdir Create Folder command in Linux

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.