Quote:
Originally Posted by jlliagre
with hard links, you need to explore the whole file system to find files sharing the same inode.
|
With soft links, if you want to find out what other soft links point to the same file you need to explore the entire universe. (One could be on a USB flash drive in the back of a desk drawer in an office down the hall.)
For added enjoyment, consider a soft link that itself has multiple hard links. A soft link is, after all, an inode, and nothing says it can't be referenced by more than one directory entry. The real fun starts if it is a
relative symlink. Now you've got a symlink that resolves to one of several places depending on the directory from which it was referenced.