Name

mkdir - Make a directory

Syntax

mkdir directory

Description

Mkdir is used to make one or more directories. Directories, like filing folders, contain files (usually related in some way) as well as other directories. For example, suppose you wish to create a directory within your home directory to store miscellaneous tidbits (as well as any simple desultory philippics) that might come your way. To do so with the name “stuff”, you would use:

mkdir stuff

To access files in your new directory, you would precede the filenames with “stuff/” (the ‘/’ being the delimiter). For example, to view a file in “stuff” from your home directory, type:

cat stuff/filename

See Also

cd(C), dstat(C), ls(C), rmdir(C)