Understanding Hard Links in Linux
by hacback17 from LinuxQuestions.org on (#5H0FT)
An online instructor said 119 is the hard link count (shown in the attached screenshot). So what does that mean? Does it mean there are other 118 hard link that point to this directory (i..e. /etc)? If there are, where and how I can find them?
EDIT: Now I could find one more hard link:
Code:[tux@server1 ~]$ ls -ldhi /etc /etc/.
16777281 drwxr-xr-x. 119 root root 8.0K Apr 23 18:52 /etc
16777281 drwxr-xr-x. 119 root root 8.0K Apr 23 18:52 /etc/.Now I am wondering where the other 117 hard link are that are pointing to the same inode?
Attached Thumbnails


EDIT: Now I could find one more hard link:
Code:[tux@server1 ~]$ ls -ldhi /etc /etc/.
16777281 drwxr-xr-x. 119 root root 8.0K Apr 23 18:52 /etc
16777281 drwxr-xr-x. 119 root root 8.0K Apr 23 18:52 /etc/.Now I am wondering where the other 117 hard link are that are pointing to the same inode?
Attached Thumbnails