1 Sep
2004
1 Sep
'04
22:45
On Wed, 2004-09-01 at 17:17 -0500, Danny Sauer wrote:
hard links can't span devices,
Actually, they can. What they can't do is span file systems.
while symlinks can, symlinks take up more space than hardlinks,
Yeah, but the difference is negligeble. A hard link will take up one directory entry, while a symlink (or most symlinks) will take up one directory entry plus one inode. Usually not enough to be concerned with
and hardlinks are usually maintained when moving one of the entries, while symlinks break if the target's moved. :)
And the most important difference of all: while there is a hard link pointing to a file, the file will not be deleted. Symlinks aren't counted that way