Penguin
Annotated edit history of HardLink version 3, including all changes. View license author blame.
Rev Author # Line
1 PerryLorier 1 A HardLink is when two directory entries point to one inode. Compare with a SoftLink.
2
3 You cannot HardLink across filesystems, you will get a [EXDEV].
4
5 You cannot HardLink directories, "." and ".."'s are already hardlinks to the current and parent directories respectively. The root directories ".." entry points to "." as well. Programs such as find(1) use the knowledge that "." and ".." are the only two hardlinks, and therefore know that after they have processed (number of links + 2) subdirectories that they have found them all, and they nolonger have to stat(1) every file in the directory to see if it's a subdirectory.
6
2 PerryLorier 7 ''Since you can only have 32,000 odd hardlinks to a file, does this mean that you can only have 256 subdirectories? surely not?''
3 AntReality 8
9 -------
10 I have found the following page very helpful: [Soft vs Hard Links | http://www.granneman.com/techinfo/linux/thelinuxenvironment/softandhardlinks.htm].
11
12 More extensive information can be found, including explanation of inode, etc, in [http://linuxgazette.net/105/pitcher.html].
13 -------