pavement

Ln

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(Ln moved to Links)
 
Line 1: Line 1:
#REDIRECT [[Links]]
+
Ln is the system command used to create both hard and soft filesystem [[links]].
 +
 
 +
To create a hard link:
 +
 
 +
ph34r# '''ln /usr/bin/originalfile /usr/home/jimbo/myhardlinktooriginalfile'''
 +
 
 +
To create a soft link:
 +
 
 +
ph34r# '''ln -s /usr/bin/originalfile /usr/home/jimbo/mypointertooriginalfile'''
 +
 
 +
[[Category:System Commands]]

Revision as of 10:52, 18 December 2004

Ln is the system command used to create both hard and soft filesystem links.

To create a hard link:

ph34r# ln /usr/bin/originalfile /usr/home/jimbo/myhardlinktooriginalfile

To create a soft link:

ph34r# ln -s /usr/bin/originalfile /usr/home/jimbo/mypointertooriginalfile

Personal tools