pavement

Links

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
similar to Microsoft Window's "shortcuts", links are a file that point to another file. ''Unlike'' MS Window's version, you can have two type of links: hard links and "soft" (or symbolic) links. Soft links just say "if you're looking for /usr/bin/myprogram, go to /usr/sbin/myprogram". Hard links make a copy of the metadata for the file that is linked - there is still only one set of the actual data for the file, but there are now directory entries in two places which reference it.
+
In Unixlike OS'es, there are two type of links: hard links and "soft" (or symbolic) links.
 +
 
 +
Soft links, aka symbolic links or "symlinks", are roughly analogous to MS Windows' "shortcuts" - they are complete files in their own right which serve as pointers.  For example, a symlink might serve to say to the filesystem, "if you're looking for /usr/bin/myprogram, go to /usr/sbin/myprogram".  
 +
 
 +
Hard links make a copy of the metadata for the file that is linked - there is still only one set of the actual data for the file, but there are now directory entries in two places which reference it.
  
 
[[Category:System Commands]]
 
[[Category:System Commands]]

Revision as of 11:26, 18 December 2004

In Unixlike OS'es, there are two type of links: hard links and "soft" (or symbolic) links.

Soft links, aka symbolic links or "symlinks", are roughly analogous to MS Windows' "shortcuts" - they are complete files in their own right which serve as pointers. For example, a symlink might serve to say to the filesystem, "if you're looking for /usr/bin/myprogram, go to /usr/sbin/myprogram".

Hard links make a copy of the metadata for the file that is linked - there is still only one set of the actual data for the file, but there are now directory entries in two places which reference it.

Personal tools