[Next] [Previous] [Up] [Top] [Contents]

3.6 Directory Navigation and Control

3.6.3 mkdir - make a directory

You extend your home hierarchy by making sub-directories underneath it. This is done with the mkdir, make directory, command. Again, you specify either the full or relative path of the directory:

Syntax

mkdir [options] directory

Common Options

-p create the intermediate (parent) directories, as needed

-m mode access permissions (SVR4). (We'll look at modes later in this Chapter).

Examples

% mkdir /home/frank/data

or, if your present working directory is /home/frank the following would be equivalent:

% mkdir data


Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]