mkdir(1) DG/UX 5.4.2 mkdir(1)
NAME
mkdir - make a directory
SYNOPSIS
mkdir [ -c ] [ -p ] [ -mmode ] dirname ...
DESCRIPTION
Mkdir creates specified directories in mode 777 (possibly altered by
umask(1)). Standard entries (. for the directory itself, and ..
for its parent) are made automatically.
Mkdir requires write permission in the parent directory.
With the -p option, mkdir also creates any non-existing parent
directories of the new directory. The -m option lets you specify the
new directories' mode. For values of mode, see chmod(1).
The -c option specifies that the directory created is a control point
directory. When -c and -p are both given, any non-existing parent
directories are created as regular directories with the same owner,
group, and mode as the control point directory. You set and display
a control point directory's allocation limits with the cpd(1)
command. You can create control point directories only on local
filesystems; therefore, diskless workstations cannot create control
point directories.
EXAMPLES
$ pwd
/usr/user1
$ mkdir cprograms
$ cd cprograms
$ pwd
/usr/user1/cprograms
$
The example above creates a directory called cprograms in the user1
directory.
DIAGNOSTICS
Mkdir returns exit code 0 if all directories were successfully made;
otherwise, it prints a diagnostic and returns non-zero. An error
code is stored in errno.
SEE ALSO
chmod(1), cpd(1), sh(1), rm(1), umask(1).
Licensed material--property of copyright holder(s) 1