Hard links
Given a file original.txt
, a hard link hardlink.txt
will point to the same inode and continue to exist even when original.txt
is deleted.
Symbolic links
Given a file original.txt
, a symbolic link symlink.txt
will point to the file name.
Question: Which one is faster and which one is smaller?
My intuition says that hard links would be faster, as they are indistinguishable from the original file. However, everything depends on the speed of symbolic links.
Also, which one takes up less hard disk space?
I would like to see answers based on measurements, as questions like this one briefly mention size and speed, but do not detail it.