MKDIR(1) | User Commands | MKDIR(1) |
mkdir - make a directory
mkdir [-m mode] [-p] dirname ...
Mkdir creates specified directories in mode 777, taking the file creation mask into account (see umask(2)). Standard entries, `.', for the directory itself, and `..' for its parent, are made automatically.
Mkdir requires write permission in the parent directory.
The following options are accepted:
If the set-group-ID bit is set on the parent directory of a newly created directory, it is inherited regardless of the -m option unless explicitly specified as a symbolic mode with `+' or `-'.
chmod(1), rmdir(1), mkdir(2), umask(2)
Mkdir returns exit code 0 if all directories were successfully made. Otherwise it prints a diagnostic and returns nonzero.
1/24/05 | Heirloom Toolchest |