4 ms·
If we're linking hundreds of individual files on a single large partition, why not make them hard links and avoid the clutter?
by torstenvl 5y ago
If we're linking hundreds of individual files on a single large partition, why not make them hard links and avoid the clutter?
- rollcat 5y agoDealing with hard links in the real world is a bit tricky. For example, "mv a b" is very different from "cat a > b". You have to do the equivalent of the latter in order to update a file in-place without updating every single hard link, which is problematic since writing to a file is not atomic the way an unlink+rename is. It's a bit of extra logic for the package manager to deal with, while a symlink is just a symlink.
- s28l 5y agoIt's entirely possible that /usr might be a separate partition from /, so hardlinks wouldn't work.