Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkdir(1) — sys5 — Apollo Domain/OS SR10.4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir(2)

MKDIR(1)                             SysV                             MKDIR(1)



NAME
     mkdir - make directories

SYNOPSIS
     mkdir [-m mode]  [-p] dirname . . .

DESCRIPTION
     mkdir creates specified directories in mode 777 (all access permissions
     granted).  It automatically makes standard entries of dot (.) and dot-dot
     (..) for its parent.

     The owner ID and group ID of the new directories are set to the process's
     real user ID and group ID, respectively.

OPTIONS
     -m mode   Allows you to specify the mode to be used for new directories.
               Choices for modes can be found in chmod(1).

     -p        Creates dirname by creating all the non-existing parent
               directories first.

EXAMPLE
     To create the subdirectory structure ltr/jd/jan, type the following:

          mkdir -p ltr/jd/jan

NOTES
     mkdir requires write permission in the parent directory.

BUGS
     umask(1) may alter the mode of specified directories normally created
     with mode 777.

DIAGNOSTICS
     The mkdir command returns exit code 0 if all directories given in the
     command line were successfully made; otherwise, it prints a diagnostic
     and returns non-zero.  An error code is stored in errno.

SEE ALSO
     sh (1), rm (1), umask (1), intro (2), mkdir(2).

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026