MKDIRS

Section: User Commands (1)
Updated: September 8, 1988
Index Return to Main Contents
 

NAME

mkdirs - make directories  

SYNOPSIS

mkdirs [ -o owner ] [ -g group ] [ -m mode ] dir_paths  

DESCRIPTION

Mkdirs creates the directories specified in each dir_path, and optionally sets owner, group, and mode for the created directories. Mkdirs requires write permission in the parent directory.

Unlike mkdir, mkdirs creates all non-existent directories specified in each dir_path. For example, the following command creates both new-dir-1 and new-dir-2:

      mkdirs ~/new-dir-1/new-dir-2

The mode of the created directories is determined by the value of the mode argument, which may be absolute or symbolic (see chmod(1) for the correct syntax), or by the current umask(2) value if no mode argument is specified. Only modes of directories created by mkdirs are affected; modes of existing directories specified in the dir_path do not change.

 

SEE ALSO

mkdir(1), rmdir(1), chmod(1), umask(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 01:00:25 GMT, September 26, 2024