irvine@vuosaari.hai.fi writes:
Actually, I see something strange on my system:
$ ls -li /etc/X11/xdm/Xservers /usr/X11R6/lib/X11/xdm/Xservers 68197 -rw-r--r-- 1 root root 747 2002-02-20 16:48 /etc/X11/xdm/Xservers 68197 -rw-r--r-- 1 root root 747 2002-02-20 16:48 /usr/X11R6/lib/X11/xdm/Xservers
The i-node number is the same and the link count is 1. I don't have time to investigate it.
I think this means that one file is a hard link to the other file - that is they are the same file.
Yes, they are hard links but the link count is defined as the number of directory entries which share the inode. See the following: $ touch h1; ln h1 h2; ls -li h1 h2 156734 -rw-r--r-- 2 malusek malusek 0 2002-12-30 20:20 h1 156734 -rw-r--r-- 2 malusek malusek 0 2002-12-30 20:20 h2 ^^^ link count The link count of the former case is 1. I wonder how it works in this case. -- Alexandr.Malusek@imv.liu.se