home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: mesg Chapter 2
UNIX Commands
Next: Reference: mkmsgs
 

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 .

Options

-m mode

Set the access mode for new directories.

-p

Create intervening parent directories if they don't exist.

Examples

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 ../..

could be accomplished by typing this:



mkdir -p work/junk/questions


Previous: Reference: mesg UNIX in a Nutshell: System V Edition Next: Reference: mkmsgs
Reference: mesg Book Index Reference: mkmsgs

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System