I'm having a brain fart regarding ls - my understanding was the ls -l 2nd column gives the number of links to the file
I see this, which seems to indicate only one hard link TO each file - kind of makes sense.
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user1/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user2/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user3/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user4/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user5/usr/tmpDSK
However, the above all share the same inode number on the server (Centos 5.9 Cloudlinux). So when I look at the 'source file' - i.e. with the same inode number:
-rw------- 1 root root 4194304000 Jan 26 2012 /usr/tmpDSK
It shows again only 1 link to it. Shouldn't it show 6 ?
I see this, which seems to indicate only one hard link TO each file - kind of makes sense.
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user1/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user2/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user3/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user4/usr/tmpDSK
-rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user5/usr/tmpDSK
However, the above all share the same inode number on the server (Centos 5.9 Cloudlinux). So when I look at the 'source file' - i.e. with the same inode number:
-rw------- 1 root root 4194304000 Jan 26 2012 /usr/tmpDSK
It shows again only 1 link to it. Shouldn't it show 6 ?