Linux offers a number of highly functional commands to the Linux Hosting experts in order to enable them to use the functions promptly. The ‘mkdir’ is a function that deals with a number of integral functions related to directory. Below listed are the basic sub-commands associated with this command.
- To create a new directory :
- To create the directory tree.dir3 under dir2 and dir2 and this under dir1
- To point the location of dir5
$ mkdir directoryname
$mkdir –p dir1/dir2/dir3
$ mkdir dir5
$ cd !$