mkdir commands that we use a lot more when we operate Linux operations and Web deployments, primarily to create a directory folder that you specify. For example, Chiang Kai-shek in the previous blog article mentioned in the download data hard disk, we need to create a home or WWW directory folder, then we use the mkdir command. Of course, we can also use the SFTP tool for visual creation, a little cumbersome and cumbersome.
First, command format
mkdir [parameters] [contents]
The main function is that we create the directory, or we can give permission.
Second, command parameters
1,-M
Set folder directory Permissions
2.-P
Create a directory path, and we can also create multiple directories at once.
3,-V
The creation process information is displayed when the directory is created.
Third, the command instance
1, mkdir-m 777 111cn.net
Here we create a directory that authorizes 777 permissions.
mkdir Command Instance
2, Mkdir-p m.111cn.net/111cn.net
Here we can create the itbulu.com directory including the laobuluo.com directory. With no arguments,-p can create directories that are embedded in the directory path. If we want to create a directory directly, we can add no parameters.
3, Mkdir-v 111cn.net
Here we create a directory, and we are prompted to create process information.
mkdir Command Usage detailed
Summing up, mkdir command when we are shipping a Linux server, still need to use, more use will be familiar with, sometimes we lazy afraid to remember the command, the use of FTP to achieve, we will appear to be very powerful, but also to learn to command, at least looking at a very powerful look.