MKDIR(1) - General Commands Manual # MKDIR(1) - General Commands Manual
NAME # mkdir - make directories
SYNOPSIS # mkdir [-p] [-m mode] directory …
DESCRIPTION # The mkdir utility creates the directories named as operands, in the order specified, using mode rwxrwxrwx (0777) as modified by the current umask(2).
The options are as follows:
-m mode
Set the file permission bits of the newly created directory to mode. The mode argument can be in any of the formats specified to the chmod(1) utility.
...
RM(1) - General Commands Manual # RM(1) - General Commands Manual
NAME # rm - remove directory entries
SYNOPSIS # rm [-dfiPRrv] file …
DESCRIPTION # The rm utility attempts to remove the non-directory type files specified on the command line. If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted (on the standard error output) for confirmation.
...
RMDIR(1) - General Commands Manual # RMDIR(1) - General Commands Manual
NAME # rmdir - remove directories
SYNOPSIS # rmdir [-p] directory …
DESCRIPTION # The rmdir utility removes the directory entry specified by each directory argument, provided it is empty.
Arguments are processed in the order given. In order to remove both a parent directory and a subdirectory of that parent, the subdirectory must be specified first so the parent directory is empty when rmdir tries to remove it.
...