Element: <link>


        <!ELEMENT link           (option?, target+, name)>
<!ATTLIST link
          base           CDATA #IMPLIED
          type           CDATA #IMPLIED>

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

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


The link element is one of the top-level operation elements. It allows you to create a hard or symbolic link.

The target child-element gives the name(s) of the target.

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

[Note] Note

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

The name child-element gives the name of the link. When there are several targets, this must be the name of a directory, in which the links to the targets will 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>.

The type attribute generally can have one of two values: "symbolic" or "hard" to go along with how the ln works.


<link type="symbolic">

The equivalent bash script is :

        echo 'Linking  share/man share/doc share/info into /usr/local'
ln -s  share/man share/doc share/info /usr/local