3 ms·
It seems like you could fake tagging in any hierarchical file system by using directories for tag names and hard links to files (not symbolic links). A hard li
by makecheck 16y ago
It seems like you could fake tagging in any hierarchical file system by using directories for tag names and hard links to files (not symbolic links).
A hard link basically gives multiple paths to the same data, sharing attributes like the owner and permissions. Using any linked path will change the file. The exception is that "rm" deletes just one link (hence the system call "unlink"), and the file is only lost when all its links are gone.