ln — Make Hard or Symbolic Links to Files

Synopsis

/usr/bin/ln [-fns] source-file [target] 
/usr/bin/ln [-fns] source-file... target 
/usr/xpg4/bin/ln [-fs] source-file [target] 
/usr/xpg/bin/ln [-fs] source-file... target
					

Description

At times it is useful to have one file accessible from several directories. Linking a file can reduce the amount of disk space used and make it easier to maintain consistency in files used by several people. Use the ln (link) command to create links between directory entries in a single file system to make a single file accessible at two ore more locations in the directory hierarchy.

Symbolic links (-s) can link files across file systems. A symbolic link has a name and a location in the directory tree but has ...

Get Solaris™ 7 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.