The mkdir command

The mkdir command



What does it do ?

It allows you to make, or create, new directories.


How is it used ?

mkdir directory_name


Examples and remarks

If you type in the command mkdir csc122, you will have created a sub-directory within the directory you are currently in.
Two options that can be used with mkdir
1) -m option --this option allows users to specify the read, write, and execute permissions to be used on your directory.
Example: mkdir [-m mode] dir_name
2) -p option --with this option mkdir creates dir_name by creating all the non-existing parent directories first.
Example: mkdir -p classes/c121/c122
this creates the subdirectory structure classes/c121/c122

For more about mkdir please refer to the the man pages, by typing man mkdir .



next previous table of contents