mkdir

The mkdir command is short for 'make directory'. It is used to create new directories.

Example

mkdir projects

This will make a directory called 'projects' in the current directory

p option (-p)

This option will create all directories referenced in the path given to the mkdir command.

Example

mkdir -p projects/new_project/files

This will create the 'projects' directory, the 'new_project' directory and the 'files' directory, contained in it's respective parent, if they do not already exist.

results matching ""

    No results matching ""