mkdir(1) CLIX mkdir(1)
NAME
mkdir - Makes directories
SYNOPSIS
mkdir [-m mode] [-p] dirname ...
FLAGS
-m This flag allows users to specify the mode to be used for new
directories. Choices for modes can be found in chmod.
-p With this flag, mkdir creates dirname by creating all the nonexisting
parent directories first.
DESCRIPTION
The mkdir command creates the named directories in mode 777 (possibly
altered by umask).
Standard entries in a directory (for example, 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
real user ID and group ID, respectively.
EXAMPLE
1. To create the subdirectory structure ltr/jd/jan, type:
mkdir -p ltr/jd/jan
EXIT VALUES
The mkdir command returns exit code 0 if all directories given in the
command line were made successfully. Otherwise, it displays a diagnostic
and returns nonzero.
RELATED INFORMATION
Commands: sh(1), rm(1), umask(1)
Functions: intro(2), mkdir(2)
2/94 - Intergraph Corporation 1