mkdir 8.25 命令詳解


創建目錄,若此目錄不存在。

另請參閱:    

基本用法     詳細用法

mkdir -p /home/ftp/test/one/two
mkdir /home/ftp/test/one/two
			

基本語法

mkdir [OPTION]... DIRECTORY...
			

注意:

長選項強製性自變量,對於短選項也是強製性的。

選項參數

參數 EN 解釋 中文翻譯 備注
-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask 設置文件模式 (如在 chmod 中),而不是 a=rwx - umask
-p, --parents no error if existing, make parent directories as needed 沒有錯誤若存在,根據需要創建父級目錄
-v, --verbose print a message for each created directory 為每個創建目錄打印消息
-Z set SELinux security context of each created directory to the default type 將每個創建目錄的 SELinux 安全上下文設為默認類型
--context[=CTX] like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX 像 -Z,或者若指定瞭 CTX,則將 SELinux 或 SMACK 安全上下文設為 CTX
--help display this help and exit 顯示此幫助並退齣
--version output version information and exit 輸齣版本信息並退齣

基本用法

功能 命令 文字解釋 示例 示例解釋
幫助 mkdir --help 展示幫助信息
版本 mkdir --version 展示版本信息

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。