GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MKDIR(1) User Commands MKDIR(1)

mkdir - make a directory

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

Mkdir creates specified directories in mode 777, taking the file creation mask into account (see umask(2)). Standard entries, `.', for the directory itself, and `..' for its parent, are made automatically.

Mkdir requires write permission in the parent directory.

The following options are accepted:

Uses the given mode to create the directory, ignoring the file creation mask. Mode can be given in octal or in symbolic form, as described in chmod(1). The set-group-ID bit is ignored when present in an octal mode.
Creates any missing parent directories. If the -m option is also present, newly created parent directories have the specified mode with /usr/local/heirloom/usr/5bin/mkdir; with /usr/local/heirloom/usr/5bin/s42/mkdir, /usr/local/heirloom/usr/5bin/posix/mkdir, and /usr/local/heirloom/usr/5bin/posix2001/mkdir, the default mode minus umask plus write and execute permission for the invoking user is always applied.

If the set-group-ID bit is set on the parent directory of a newly created directory, it is inherited regardless of the -m option unless explicitly specified as a symbolic mode with `+' or `-'.

chmod(1), rmdir(1), mkdir(2), umask(2)

Mkdir returns exit code 0 if all directories were successfully made. Otherwise it prints a diagnostic and returns nonzero.

1/24/05 Heirloom Toolchest

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.