Element: <mkdir>


        <!ELEMENT mkdir          (option?, permissions?, name+)>
<!ATTLIST mkdir
          base           CDATA #IMPLIED>

This element occurs in : Element : <alfs> | Element: <stage>

See also : Element: <option> | Element: <name> | Element: <permissions>


The mkdir element is one of the top-level operation elements. It describes the creation of one (or several) directory(ies).

The option child-element provides a means to pass an option to the mkdir command.

[Note] Note

Not all of the mkdir command's options are in every implementation. Refer to the documentation for your implementation to determine what options are available.

The permissions child-element assigns permissions to the directories created by the command following the syntax in Element: <permissions>.

The name child-element contains the name(s) of the directory(ies) to be created.

The base attribute allows you to specify the directory in which the operation will be performed. For a better description, see Element : <base>.


<mkdir base="/usr/local/lib">

The equivalent bash script is :

cd /usr/local/lib
echo Making directory X11
mkdir -p X11