June 2003
Beginner to intermediate
944 pages
43h 1m
English
mkdir
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.
Set the access mode for new directories. See chmod for an explanation of acceptable formats for mode.
Create intervening parent directories if they don’t exist.
Print a message for each directory created.
Print help message and then exit.
Print version number and then exit.
Create a read-only directory named personal:
mkdir -m 444 personalThe following sequence:
mkdir work; cd workmkdir junk; cd junkmkdir questions; cd ../..
can be accomplished by typing this:
mkdir -p work/junk/questionsRead now
Unlock full access