mkdir
1. Role
The purpose of the mkdir command is to create a subdirectory named DirName, similar to the MD command under MS DOS, which is used by all users.
2. Format
mkdir [Options] Directory name
3.[options] Main parameters
-M,--mode= mode: Set permissions, similar to chmod.
-P,--parents: Creates a top-level directory when needed, and is not considered an error if the directory already exists.
-V,--verbose: Displays information each time a new directory is created.
--version: Show version information and leave.
4. Application examples
you can set permissions for the directory at the time of catalog creation, and the parameters used are "-M". Assuming that the directory name you want to create is "tsk", so that all users have rwx (that is, read, write, execute), you can use the following command:
$ mkdir-m 777 Tsk
This article is from the "--" blog, please be sure to keep this source http://57388.blog.51cto.com/47388/1544714
linux-File Processing command-mkdir