HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
392 Chapter 5
Command Definitions L-O
NEWLINK
The following command creates FILE3 as a symbolic link to the nonexistent file
SOURCE1.CODE.SOFTWARE.
:NEWLINK LINK=FILE3.PUB.ACCT1; TO=SOURCE1.CODE.SOFTWARE
The following command creates a symbolic link FILE4 as a link to an existing file.
:NEWLINK LINK=FILE4.PUB.ACCT1; TO=/SOFTWARE/CODE/dir2/f1
The following command creates /ACCT1/PUB/softPUB which points to
/SOFTWARE/PUB, which is the group PUB in SOFTWARE account:
:NEWLINK LINK=/ACCT1/PUB/softPUB; TO=/SOFTWARE/PUB
The following command creates the symbolic link FILE9 as a link to the root directory:
:NEWLINK LINK=FILE9.PUB.ACCT1; TO=/
Relative symbolic links
The following examples show how to create symbolic links that are relative to the current
working directory (CWD). For these examples assume that CWD is
/SOFTWARE/CODE/dir2
The following command creates a symbolic link /SOFTWARE/CODE/F1 which points to
the file ./f1:
:NEWLINK LINK=../F1; TO=./f1
The following command creates a symbolic link /SOFTWARE/CODE/F2 which points to
the file ./f2:
:NEWLINK LINK=F2.CODE; TO=./f2
The following command creates the link /SOFTWARE/CODE/dir2/dir which points to the
directory ../../../dir:
:NEWLINK LINK=./dir; TO=../../../dir
If you enter the following command, you will get an error message:
:NEWLINK LINK=FILE1.PUB.ACCT1; TO=/dir/f1
Duplicate name in directory. (CIERR 906)
Similarly, the following command also generates an error message:
:NEWLINK LINK=../TERMIO; TO=./f1
Duplicate name in directory. (CIERR 906)
Related Information
Commands PURGELINK, PURGE, LISTFILE
Manuals None