PDF 文書ファイルをダウンロードする (7230 KB)
mkdir(1)Name | Synopsis | Description | Options | Operands | Usage | Examples | Environment Variables | Exit Status | Attributes | See Also Name
Synopsis/usr/bin/mkdir [-m mode] [-p] dir... ksh93mkdir [-p] [-m mode] dir... Description/usr/bin/mkdirThe mkdir command creates the named directories in mode 777 (possibly altered by the file mode creation mask umask(1)). Standard entries in a directory (for instance, the files “.”, for the directory itself, and “. .”, for its parent) are made automatically. mkdir cannot create these entries by name. Creation of a directory requires write permission in the parent directory. The owner-ID and group-ID of the new directories are set to the process's effective user-ID and group-ID, respectively. mkdir calls the mkdir(2) system call. setgid and mkdirTo change the setgid bit on a newly created directory, you must use chmod g+s or chmod g-s after executing mkdir. The setgid bit setting is inherited from the parent directory. ksh93The mkdir built-in in ksh93 is associated with the /bin and /usr/bin paths. It is invoked when mkdir is executed without a pathname prefix and the pathname search finds a /bin/mkdir or /usr/bin/mkdir executable. mkdir creates one or more directories. By default, the mode of created directories is a=rwx minus the bits set in umask(1). Options
/usr/bin/mkdirThe following options are supported by /usr/bin/mkdir: ksh93The following options are supported by the mkdir built-in in ksh93: OperandsUsageSee largefile(5) for the description of the behavior of mkdir when encountering files greater than or equal to 2 Gbyte ( 231 bytes). ExamplesExample 1 Using mkdirThe following example:
creates the subdirectory structure ltr/jd/jan. Environment VariablesSee environ(5) for descriptions of the following environment variables that affect the execution of mkdir: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH. Exit Status
The following exit values are returned: AttributesSee attributes(5) for descriptions of the following attributes: /usr/bin/mkdir
ksh93
The ksh93 built-in binding to /bin and /usr/bin is Volatile. The built-in interfaces are Uncommitted. See Alsochmod(1), ksh93(1), rm(1), sh(1), umask(1), Intro(2), mkdir(2), attributes(5), environ(5), largefile(5), standards(5) Name | Synopsis | Description | Options | Operands | Usage | Examples | Environment Variables | Exit Status | Attributes | See Also |
|||||||||||||||||||||