mkdir
The mkdir command is used to make new directories, therefore building a hierarchy of directories to maintain files in an orderly manner. It is always better to organize files based on the information in which they contain if there are hundreds of files. For instance, all files holding the personal information of the employees can be kept under one directory, which is called, personal. This helps in locating files if they are classified into subdirectories.
Syntax
mkdir [ pathname]
in the syntax pathname is the path of the directory to be created.
Practice 1
The given example displays the usage of the mkdir command.
# mkdir salary
# cd salary
# pwd
/usr/sunil/personal/salary
The given example displays how to make a directory from the current directory (personal). In this pathway, directories inside directories can be created.