mkdir(1) MPE/iX Shell and Utilities mkdir(1)
______________________________________________________________________
NAME
mkdir -- create a new directory
SYNOPSIS
mkdir [-p] [-m mode] directory...
DESCRIPTION
The mkdir command creates a new directory for each named direc-
tory argument.
Option
mkdir accepts the following options:
-m mode
lets you specify permissions for the directories. The mode
argument may have the same value as the mode for chmod; see
chmod(1) for more details.
-p creates intermediate directory components that don't already
exist. For example, if one of the directory arguments is
dir/subdir/subsub and subdir doesn't already exist, mkdir
creates it. Directories are created with the mode u+wx,
which means read, write, and search permissions for the
owner.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
Message: directory "pathname": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: Insufficient memory
Cause: There were not enough free system resources to perform
the specified operation.
Action: Free up more resources.
Message: Missing mode after -m
Cause: You specified the -m option but did not follow it with
a mode.
Action: Provide a valid mode following the -m option.
1
mkdir(1) MPE/iX Shell and Utilities mkdir(1)
______________________________________________________________________
Message: Octal mode may contain only digits [0-7] in numstring
Cause: When using the octal mode to indicate new access per-
missions, you specified a string numstring which con-
tained a character other than the digits 0 to 7.
Action: Make sure that all mode values in octal mode are valid
octal numbers, containing only the digits 0 through 7.
Message: Unknown option "-option"
Cause: You specified an option that is not valid for mkdir.
Action: Check the DESCRIPTION section for a list of valid mkdir
options.
Message: Unknown or missing operator in symbolic mode "mode-
string" "
Cause: When using the symbolic mode to indicate new access
permissions, you specified a string modestring which
had either a missing or unrecognized operator.
Action: Make sure that all mode values in symbolic mode contain
one of the following operators: +, -, or =.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems.
MPE/iX NOTES
For information on how the current MPE/iX implementation may
affect the operation of this utility, see Appendix A, MPE/iX
Implementation Considerations.
SEE ALSO
rm(1), rmdir(1), umask(1)
2