[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Commands Reference, Volume 3

mkdirhier Command

Purpose

Creates a hierarchy of directories or a single directory.

Syntax

mkdirhier Directory ...

Description

The mkdirhier command creates the specified directories. Unlike the mkdir command, if any of the parent directories of the specified directory do not exist, the mkdirhier command creates those directories as well as the specified directory.

Example

To create a directory named foo2 or to create a hierarchy of directories named foo, foo1, and foo2, enter:

mkdirhier ~/foo/foo1/foo2

If foo and foo1 already exist then the command creates foo2. However, if none of them exist then the command creates all three new directories.

Related Information

The mkdir command.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]