Creating a directory on the command line
Find out how to organise your files into meaningful collections
A directory contains files, any of which can also be directories. There are lots of files and directories on your computer, but you can make your own too! Using this flexible structure, you can organise files however best suits you.
Making a directory
Use the mkdir
command to make a directory. Simply pass the name of the new directory:
You can create several directories at once with a single command:
Note that the new directory name can actually be a complete path, relative or absolute:
Naming
Generally, your naming scheme is up to you. However:
- All file names are case…