Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkdir(1) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

cpd(1)

sh(1)

rm(1)

umask(1)



mkdir(1)                         DG/UX R4.11                        mkdir(1)


NAME
       mkdir - make a directory

SYNOPSIS
       mkdir [ -c ] [ -p ] [ -mmode ] dirname ...

DESCRIPTION
       Mkdir creates specified directories in mode 777 (possibly altered by
       umask(1)).  Standard entries (.  for the directory itself, and ..
       for its parent) are made automatically.

       Mkdir requires write permission in the parent directory.

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

       With the -p option, mkdir also creates any non-existing parent
       directories of the new directory.  The -m option lets you specify the
       new directories' mode.  For values of mode, see chmod(1).

       The -c option specifies that the directory created is a control point
       directory.  When -c and -p are both given, any non-existing parent
       directories are created as regular directories with the same owner,
       group, and mode as the control point directory.  You set and display
       a control point directory's allocation limits with the cpd(1)
       command.  You can create control point directories only on local
       filesystems; therefore, diskless workstations cannot create control
       point directories.

EXAMPLES
       $ pwd
       /usr/user1
       $ mkdir cprograms
       $ cd cprograms
       $ pwd
       /usr/user1/cprograms
       $

       The example above creates a directory called cprograms in the user1
       directory.

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

SEE ALSO
       chmod(1), cpd(1), sh(1), rm(1), umask(1).

NOTE
       Since mkdir uses the real uid and gid of the process, mkdir will fail
       if a user does not have the proper search/write permissions to the
       parent directory.


Licensed material--property of copyright holder(s)

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