Mkdir-make Directories
DESCRIPTION: Create the DIRECTORY (ies), if they does not already exist.
Mandatory arguments to long options is Mandatory for
Short options too.
Parameters:
-M,--mode=mode set file mode (as in chmod), not A=rwx-umask
Set file Mode ( such as chmod) instead of = Rwx--umask
-p,--parents no error if existing, make parent directories as needed /strong>
can be a path name. If some of the directories in the path do not yet exist , Add this option
Item after,The system will automatically set up directories that do not yet exist.,multiple directories can be created at one time;
-V,--verbose (verbose)print a message for each created directory
print a message for each directory you create
--version output version information and exit
Parameters using Demo:
Parameter --version
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/85/79/wKioL1ekhuSDRMe7AAFoaIP1_AU675.png "title=" Picture 1.png "width=" 716 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:716px;height:190px; "alt=" Wkiol1ekhusdrme7aafoaip1_au675.png "/>
Parameter- p
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/85/79/wKioL1ekiACiyDrcAAHKOAb9sYs977.png "style=" width : 716px;height:240px; "title=" Picture 2.png "width=" 716 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1ekiaciydrcaahkoab9sys977.png "/>
Parameter- m--mode Specify permissions:
The permissions for files created by default are:
777-022=755=RWX Rx RX
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/85/7A/wKiom1ekiACAlF5IAAC9rprEEE4223.png "style=" float: none; "title=" Image 3.png "alt=" Wkiom1ekiacalf5iaac9rpreee4223.png "/>
But there are times when you need to create a file or directory to change permissions when you use -m=---mode parameter
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/85/7A/wKiom1ekiL7gRLNvAAGnu-VyMRE366.png "title=" Picture 4.png "width=" 716 "height=" 258 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:716px;height:258px; "alt=" Wkiom1ekil7grlnvaagnu-vymre366.png "/>
Parameter -v=verbose The meaning of the display
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/85/79/wKioL1ekiATj45qYAAFsU7f6BB0560.png "style=" width : 716px;height:216px; "title=" Picture 5.png "width=" 716 "height=" 216 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1ekiatj45qyaafsu7f6bb0560.png "/>
This article is from the "[email protected]" blog, please be sure to keep this source http://jinchengzheng.blog.51cto.com/10798482/1834867
mkdir Common Parameters Use Demo