[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    link(1M) manual page Table of Contents

Name

link, unlink - link and unlink files and directories

Synopsis

/usr/sbin/link file1 file2
/usr/sbin/unlink file

Availability

SUNWcsu

Description

The link command is used to create a file name that points to another file. file1 is the existing file, file2 is the newly-created file. Linked files and directories can be removed by the unlink command; however, it is strongly recommended that the rm(1) and rmdir(1) commands be used instead of the ln(1) command.

The only difference between ln and link and unlink is that the latter do exactly what they are told to do, abandoning all error checking. This is because they directly invoke the link and unlink system calls.

See Also

ln(1) , rm(1) , link(2) , unlink(2)

Notes

These commands can be run only by the super-user.


Table of Contents