~/CyberRef$


mkdir

mkdir, short for make directory, is used to create new directories (folders).

Tip: You can create multiple directories at once.


Creating a Directory

Directories (folders) are essential to organizing information. Creating one in your current directory is easy:

mkdir myFirstFolder mySecondFolder

The above command would create two new folders in your current working directory.

Creating a Directory and Subdirectory

You may also create nested folders:

mkdir myThirdFolder/myNestedFolder

This would create a new folder, myThirdFolder, with a folder inside of it named myNestedFolder.

Create a Directory in a Specific Location

Lastly, you may create a folder in a specific location (in this case, /var/tmp)using:

mkdir /var/tmp/myFourthFolder

Reference

https://www.geeksforgeeks.org/linux-unix/mkdir-command-in-linux-with-examples/