LN Command

HSI Version: 

All

Purpose: 

Creates a link (hard or symbolic) from one HPSS node to another

Aliases: 

 

Command Format: 

ln [-f ] [- h] [-n ] [ -s ] srcname target
ln [-f ] [- h] [-n ] [ -s ] srcname [ srcname ... ] 
targetdir

Options: 

-f : Unlink any already existing file, permitting the link to occur

-h : If the target_file or target_dir is a symbolic link, do not follow it. This is most useful with the -f option, to replace a symlink which may point to a directory.

-n : Same as -h, for compatibility with other ln implementations.

-s : Create a symbolic link.

Keywords: 

DIRn 

Usage Notes: 

srcname must be an existing node; target must be a non-existent node unless -f is specified.


If the second form of the command is used, where targetdir is specified, then the last component of srcname is used when creating the target symlink.   For example:

      ln -s /home/users/tom/testfile toms_files

would create the link:

      toms_files/file -> /home/users/tom/testfile

Example: 

 

Related Command(s):