How to create a new directory


Create a new folder/s, if it/they does/do not exist yet. To create a directory, simply pass its name to the command. For example:

$ mkdir mydir

Or you can use the mkdir command with the -p option. This option will attempt to create the directory, but don’t complain if a directory already exists and will create parent directories as needed. For example:



We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close