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