Element: <mkdir>

Syntax

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

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

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

Description

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

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

[Note] Note

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

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

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

The attribute base gives the name of the directory in which the new directory will be created. See Element : <base>.

Examples

<mkdir base="/usr/local/lib">
        <option>parents</option>
        <name>X11</name>
</mkdir>

The equivalent bash script is :

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