Make Directory (mkdir)

To create a directory for storing and organizing other files, use the make directory (mkdir) command.

eos$ mkdir directory_path
eos$ mkdir -p directory_path

Using the -p option will create every directory in the pathname, assuming it doesn’t already exist.

Example

To create a directory called MyE115 in your home directory:

If you are in your home directory:

eos$ mkdir MyE115
Image displaying the creation of a new directory, MyE115, in the home directory of the user. Accomplished with the command mkdir e115.

If you are not in your home directory:

eos$ mkdir ~/MyE115

Note: ~/MyE115 is the relative pathname of the directory you wish to create. The absolute pathname would be /afs/unity.ncsu.edu/users/u/unityid/MyE115

To create a directory called basic_unix inside the MyE115 Directory

eos$ mkdir ~/MyE115/basic_unix

To create a directory called basic_unix inside the MyE115 Directory, if MyE115 does not exist

eos$ mkdir -p ~/MyE115/basic_unix

Note: the -p option creates MyE115 as well as basic_unix

Should I expect an output?

No.