Directories
are used to organize file storage on your hard disk. To create a
new directory in which to store files, use the mkdir
command. Directories can be created using either an absolute or
a relative pathname (as discussed in chapter 3). More than one directory
name can be specified on the same line to create more than one new
directory.
Command
Format
mkdir directory_name(s)
Examples
The following
is an example of creating a directory below the current directory
(this assumes that you are in the /home/chuck directory):
$ mkdir Snoopy
$ ls -F
charles Snoopy/ PigPen/ file1 file3 games/
chuck Woodstock/ Franklin/ file2 file4 compositions/
$
The following
is an example of creating multiple directories using one command
line entry (this assumes that you are in the /home/chuck/sports
directory):
$ mkdir football
kicker fall
$ ls
fall football kicker
$