Name

mkdir — stdin  stdout  - file  -- opt  --help  --version

Synopsis

mkdir [options] directories

mkdir creates one or more directories:

$ mkdir directory1 directory2 directory3

Useful options

-p

Given a directory path (not just a simple directory name), create any necessary parent directories automatically: mkdir -p /one/two/three creates /one and /one/two if they don’t already exist, then /one/two/three.

-m mode

Create the directory with the given permissions:

$ mkdir -m 0755 mydir

By default, your shell’s umask controls the permissions. See the chmod command in File Properties, and File Protections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.41.187