ln |
[-f ] [-L |
-P | -s ]
source [target] |
ln |
[-f ] [-L |
-P | -s ]
source ... directory |
In the first synopsis,
ln
creates a hard link
target to the
source. If
target is absent, then a hard link to
source is created in the current directory. In the
second synopsis form,
ln
creates a hard link for each
source in
directory.
-f
- Remove existing files.
-L
- Dereference all symbolic links.
-P
- Preserve symbolic links.
-s
- Create symbolic links.
The ln
utility exits 0 on success,
and >0 if an error occurs.
The ln
utility is compliant with the
specification.