This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
mkdir [options] directories
Create one or more directories. You must have write permission in the parent directory in order to create a directory. See also rmdir. The default mode of the new directory is 0777, modified by the system or user's umask.
Create a read-only directory named personal:
mkdir -m 444 personal
The following sequence:
mkdir work; cd work mkdir junk; cd junk mkdir questions; cd ../..
can be accomplished by typing this:
mkdir -p work/junk/questions