Make Directory (mkdir)
create a directory
Usage
mkdir [DIRECTORY NAME]
Examples
ls -l
total 8
drwxr-xr-x 2 kali kali 4096 Aug 26 12:21 dir1
drwxr-xr-x 2 kali kali 4096 Aug 26 12:21 dir2
-rw-r--r-- 1 kali kali 0 Aug 26 12:21 file1
-rw-r--r-- 1 kali kali 0 Aug 26 12:21 file2
We have dir1, and dir2. Lets make dir3
mkdir dir3
ls -l
total 12
drwxr-xr-x 2 kali kali 4096 Aug 26 12:21 dir1
drwxr-xr-x 2 kali kali 4096 Aug 26 12:21 dir2
drwxr-xr-x 2 kali kali 4096 Aug 26 12:29 dir3
-rw-r--r-- 1 kali kali 0 Aug 26 12:21 file1
-rw-r--r-- 1 kali kali 0 Aug 26 12:21 file2
Make multiple directories at once by separating directory names with spaces.
mkdir dir4 dir5 dir6 dir7
ls -l
total 28
drwxr-xr-x 2 kali kali 4096 Aug 26 12:21 dir1
drwxr-xr-x 2 kali kali 4096 Aug 26 12:21 dir2
drwxr-xr-x 2 kali kali 4096 Aug 26 12:33 dir3
drwxr-xr-x 2 kali kali 4096 Aug 26 12:35 dir4
drwxr-xr-x 2 kali kali 4096 Aug 26 12:35 dir5
drwxr-xr-x 2 kali kali 4096 Aug 26 12:35 dir6
drwxr-xr-x 2 kali kali 4096 Aug 26 12:35 dir7
-rw-r--r-- 1 kali kali 0 Aug 26 12:21 file1
-rw-r--r-- 1 kali kali 0 Aug 26 12:21 file2