Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir(1)

rmdir(1)

chmod(1)

umask(2)

MKDIRS(1)  —  UNIX Programmer’s Manual

NAME

mkdirs − make directories

SYNOPSIS

mkdirs [ −o owner ] [ −g group ] [ −m mode ] dir_paths

DESCRIPTION

Mkdirs creates the directories specified in each dir_path, and optionally sets owner, group, and mode for the created directories.  Mkdirs requires write permission in the parent directory. 

Unlike mkdir, mkdirs creates all non-existent directories specified in each dir_path.  For example, the following command creates both new-dir-1 and new-dir-2:

mkdirs ~/new-dir-1/new-dir-2

The mode of the created directories is determined by the value of the mode argument, which may be absolute or symbolic (see chmod(1) for the correct syntax), or by the current umask(2) value if no mode argument is specified.  Only modes of directories created by mkdirs are affected; modes of existing directories specified in the dir_path do not change. 

SEE ALSO

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

7th Edition  —  September 8, 1988

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