Using ‘mkdir’ Commands in Linux

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 :
  • $ mkdir directoryname

  • To create the directory tree.dir3 under dir2 and dir2 and this under dir1
  • $mkdir –p dir1/dir2/dir3

  • To point the location of dir5
  • $ mkdir dir5
    $ cd !$

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...