Make File (touch)
Similar to mkdir, but with files.
Usage:
touch [FILENAME}
Examples
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
Lets make file3
touch file3
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
-rw-r--r-- 1 kali kali 0 Aug 26 12:39 file3
Just like with mkdir, you can make multiple files by separating with a space.
touch file4 file5 file6 file7
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
-rw-r--r-- 1 kali kali 0 Aug 26 12:39 file3
-rw-r--r-- 1 kali kali 0 Aug 26 12:41 file4
-rw-r--r-- 1 kali kali 0 Aug 26 12:41 file5
-rw-r--r-- 1 kali kali 0 Aug 26 12:41 file6
-rw-r--r-- 1 kali kali 0 Aug 26 12:41 file7