Ln
From FreeBSDwiki
(Difference between revisions)
(Ln moved to Links) |
|||
| Line 1: | Line 1: | ||
| − | # | + | 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 11: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