MKDIR

Section: Misc. Reference Manual Pages (1L)
Index Return to Main Contents
 

NAME

mkdir - make directories  

SYNOPSIS

mkdir [-p] [-m mode] [--path] [--mode=mode] dir...  

DESCRIPTION

This manual page documents the GNU version of mkdir. mkdir creates a directory with each given name. By default, the mode of created directories is 0777 minus the bits set in the umask.  

OPTIONS

-m, --mode mode
Set the mode of created directories to mode, which is symbolic as in chmod and uses the default mode as the point of departure.
-p, --path
Ensure that each given path exists. Make any missing parent directories for each argument. Parent directories default to the umask modified by `u+wx'. Do not consider an argument directory that already exists to be an error.

The long-named options can be introduced with `+' as well as `--', for compatibility with previous releases. Eventually support for `+' will be removed, because it is incompatible with the POSIX.2 standard.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS

This document was created by man2html, using the manual pages.
Time: 19:10:24 GMT, November 11, 2024