link, unlink — Link and Unlink Files and Directories

Synopsis

/usr/xpg4/bin/link existing-file
						new-file
/usr/sbin/link existing-file
						new-file
/usr/sbin/unlink file
					

Description

Use the link and unlink commands to link and unlink files and directories. Only superuser 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.

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 behavior differs from the ln(1) command. See ln(1).

Although you can remove linked files and directories by using unlink, it is safer to use rm(1) and ...

Get Solaris™ 8 System Administrator's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.