mkdir command is used to create directories. The command is followed by the names of the directories to be created.
$ mkdir virani
This command creates the directories virani
$ mkdir stud1 stud2 stud3
This command will create three directories stud1,stud2,and stud3.
$ mkdir virani virani/sci virani/arts
This creates three directories virani,two sub directories sci and arts under virani.The order of specifying arguments is important; you obviously can’t create a sub directory before creation of its parent directory.
Sometimes the system refuses to create a directory:
$mkdir maths
mkdir : can’t make directory maths
This can happen due to these reasons:
• The directory maths may already exist.
• There may be an ordinary file by that name in the current directory.
• The user doesn’t have the permission to create a directory.
No comments:
Post a Comment