Creates one or more
directories. You must have write permission in the parent directory to create a directory. See also
. 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
for an explanation of acceptable formats for
Create intervening parent directories if they don't exist.
Verbose mode. Print directories as they're created.
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