mkdir command stands for make directory allows the user to create an empty directory on Linux operating system. This command can also create multiple folders at once as well as set permissions for folders. Of course, pay attention to the permission to create the user’s directory when standing in the parent directory or not? Otherwise, you will get an error message about permission denied.
In this context, we shall look into how to use the mkdir command through several examples.
It's syntax is give below:
$ mkdir [options] name
For example, We will create a directory named linuxapt:
$ mkdir linuxapt
Now, if this directory have files then you can list them with the ls command:
Its options is given below:
This article covers how to use the mkdir command with some examples. In fact, The mkdir command in Linux/Unix allows users to create or make new directories. mkdir stands for "make directory". With mkdir, you can also set permissions, create multiple directories (folders) at once, and much more.