mkdir command

mkdir command This command creates new directory if directory already exists then displays error. In this post, we will teach you about how to create a directory And we will discuss about other important feature of this command. So let's learn ... Syntax: $mkdir [options] dir1 dir2 1. mkdir dir1:- it creates a directory. you want to create multiple directories at once, then you can do something like this There are three dir1,dir2,dit3 poli files created here. 2. mkdir -p dir/dir1 :- We discuss about it by taking an example so that it is easy for you to understand. We are currently in a directory named c ontact , it means our current working directory is contact. Four directories exist inside the current working directory:- dir , dir1, dir2, dir3 . Now we want to create directory named subpoto inside photo directory but directory named photo itself does not exist in current working directory (contact). The -p (--parent)option ...