Search For Answers
How do I make a new directory in Linux?
Last updated: March 29, 2011
To make a new directory in Linux you use the mkdir command.
This is the syntax for this command:
# mkdir somenewdirectory
You can make that new directory anywhere you wish using an absolute path. For example if you are in the root user's home directory you are in /root but if you ant to make a new directory somewhere else in the filesystem use this syntax:
# mkdir /some/other/directory/newdirectoryname