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