<!ELEMENT link (option?, target+, name)> <!ATTLIST link base CDATA #IMPLIED type CDATA #IMPLIED> |
This element occurs in the elements : Element : <alfs> | Element: <stage>
See also : Element: <option> | Element: <target> | Element: <name>
The element link is one of the many main operation elements. It allows you to create a hard or symbolic link.
The sub-element target gives the name(s) of the targets.
The sub-element option FILL IN HERE.
The sub-element name 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 attribute base specifies the directory in which the link creation is performed.
The attribute type specifies if the link is symbolic (the attribute value is "symbolic" or not specified) or not (if the attribute value is "hard")
The following two options are supported :
"force" means that the existing destination files are removed.
"no_dereference" means that if the destination is a symxref to a directory it will be treated as if it were a normal file (and thus will replace it if the "force" option is specified).
<link> <target>share/man</target> <target>share/doc</target> <target>share/info</target> <name>/usr/local</name> </link> |
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 |