Making a directory or a folder using DOS or CMD or LINUX/UNIX scripting

We all now how to create a new folder or a directory in a GUI interface. Now, we'll see how to create a new folder or directory with the help of command prompt (cmd) or DOS scripting or LINUX/UNIX scripting, which were used earlier when GUI operating systems were still not developed. Let's see how to do this!

DOS or CMD scripting for Windows:

To create a new directory in an existing directory in Windows, we use md or mkdir command, which standa for make directory. The syntax is given below:

md myblog

OR

mkdir myblog


Here, myblog is the directory or the folder name that we are going to create.


LINUX/UNIX scripting for LINUX based or UNIX based OSs:

To create a new folder or directory in UNIX or LINUX based operating systems, we use mkdir UNIX scripting command, which stands for make directory. The syntax is given below:

mkdir myblog

Here, myblog is the folder or the directory that we are going to create.


Comments