MPE/iX Shell and Utilities Reference Manual, Vol 1

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 directory 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-372 Commands and Utilities