Usage: mkdir [OPTION]... DIRECTORY...
ディレクトリを作成する。ただし既にディレクトリがあれば何もしない。
長いオプションに必須の引数は短いオプションにも必須です.
-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask
-p, --parents no error if existing, make parent directories as needed
-v, --verbose print a message for each created directory
-Z, --context=CTX set the SELinux security context of each created
directory to CTX
When COREUTILS_CHILD_DEFAULT_ACLS environment variable is set, -p/--parents
option respects default umask and ACLs, as it does in Red Hat Enterprise Linux 7 by default
--help この使い方を表示して終了
--version バージョン情報を表示して終了
Report mkdir bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.
Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask
-p, --parents no error if existing, make parent directories as needed
-v, --verbose print a message for each created directory
-Z, --context=CTX set the SELinux security context of each created
directory to CTX
When COREUTILS_CHILD_DEFAULT_ACLS environment variable is set, -p/--parents
option respects default umask and ACLs, as it does in Red Hat Enterprise Linux 7 by default
--help display this help and exit
--version output version information and exit
Report mkdir bugs to bug-coreutils@gnu.org
GNU coreutils home page:
MKDIR(1) MKDIR(1) 名前 mkdir - ディレクトリを作成する 書式 mkdir [options] directory... POSIX オプション: [-p] [-m mode] GNU オプション (簡略形式): [-pv] [-m mode] [--help] [--version] [--] 説明 mkdir コマンドは指定した名前でディレクトリを作成する。 作 成 さ れ た デ ィ レ クトリのアクセス権は、特に指定がない場合、 0777 (‘a+rwx’) から umask にセットされているビットを引いたものになる。 オプション -m mode, --mode=mode 作成したディレクトリのアクセス権を mode で指定して設定する。この アクセス権は chmod(1) コマンドと同様にシンボルを使い指定できる。 その時標準のアクセス権を初期値として使う。 -p, --parents 引き数に指定した各々の directory で、存在しない親ディレクトリ も 含 め て作成する。作成された親ディレクトリのアクセス権は、 umask の値に ‘u+wx’ としたものが設定される。すでに存在するディレクトリ に対応する引き数は無視される。 (従って、ディレクトリ /a が存在す る場合に ‘mkdir /a’ とするとエラーとなるが、 ‘mkdir -p /a’ と す るとエラーにならない。) -v, --verbose 作成したディレクトリごとにメッセージを表示する。このオプションは --parents を一緒に指定するととても役立つ。 GNU 標準オプション --help 標準出力に使用方法のメッセージを出力して正常終了する。 --version 標準出力にバージョン情報を出力して正常終了する。 -- オプションリストを終了する。 環境変数 変数 LANG, LC_ALL, LC_CTYPE, LC_MESSAGES が通常の意味を持つ。 準拠 POSIX 1003.2 注意 このページでは fileutils-4.1 パッケージでの mkdir コマンドについて説 明 し ている。その他のバージョンでは少し違いがあるかもしれない。修正や追加 は aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com 宛てにメ ー ルで連絡してほしい。プログラムのバグについては bug-fileutils@gnu.org へ報告してほしい。 GNU fileutils 4.1 18 June 2002 MKDIR(1)
MKDIR(1) User Commands MKDIR(1)
NAME
mkdir - make directories
SYNOPSIS
mkdir [OPTION]... DIRECTORY...
DESCRIPTION
Create the DIRECTORY(ies), if they do not already exist.
Mandatory arguments to long options are mandatory for short options
too.
-m, --mode=MODE
set file mode (as in chmod), not a=rwx - umask
-p, --parents
no error if existing, make parent directories as needed
-v, --verbose
print a message for each created directory
-Z, --context=CTX
set the SELinux security context of each created directory to
CTX
When COREUTILS_CHILD_DEFAULT_ACLS environment variable is set,
-p/--parents option respects default umask and ACLs, as it does
in Red Hat Enterprise Linux 7 by default
--help display this help and exit
--version
output version information and exit
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report mkdir bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa