The link and unlink commands
link and unlink files and directories. Only super-users can use these commands.
Use link to create a new file that points to an
existing file. The existing-file and new-file operands specify the existing file and newly-created
files. See OPERANDS.
link and unlink directly invoke
the link(2) and unlink(2) system
calls, performing exactly what they are told to do and abandoning all error
checking. This differs from the ln(1)
command. See ln(1).
While linked files and directories can be removed using unlink, it is safer to use rm(1)
and rmdir(1) instead.
See rm(1) and rmdir(1).
If the existing file being hard linked is itself a symbolic link,
then the newly created file (new-file) will be
a hard link to the file referenced by the symbolic link, not to the symbolic
link object itself (existing-file).