Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkdir(1) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rm(1)

sh(1)

umask(1)

MKDIR(1)

NAME

mkdir − make a directory

SYNOPSIS

mkdir [ −p ] 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. 

If the −p option is specified, intermediate directories are created as necessary.  Otherwise, the full path prefix of dirname must already exist. 

Mkdir requires write permission in the parent directory. 

EXAMPLES

The following command creates the directory gem beneath directory raw:

mkdir raw/gem

Note that directory raw must already exist, and it must be a subdirectory of the current working directory. 

SEE ALSO

rm(1), sh(1), umask(1). 

DIAGNOSTICS

Mkdir returns exit code 0 if all directories were successfully made; otherwise, it prints a diagnostic and returns non-zero. 

EXTERNAL INFLUENCES

Environment Variables

LANG determines the language in which messages are displayed. 

If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. 

If any internationalization variable contains an invalid setting, mkdir behaves as if all internationalization variables are set to "C".  See environ(5).

International Code Set Support

Single- and multi-byte character code sets are supported. 

STANDARDS CONFORMANCE

mkdir: SVID2, XPG2, XPG3

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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