I just noticed that the link between .. and the parent dir is hardlink, they have the same inode number:
starpinker@host /home/starpinker/unix $ ls -ail 8200794 drwxrwxr-x 2 starpinker starpinker 4096 Aug 23 11:22 . 1409238 drwxrwxr-x 2 starpinker starpinker 4096 Aug 23 11:22 ..
where the inode number of
8200794, and the inode number of
/home/starpinker is exactly
I have a question on this:
The hardlink cannot be create across different file systems. Then what if the parent directory and child directory are in different file systems? For example in my case, if the
/home/starpinker/unix are in different file system, the unix is just a mount point, then will the link between
/home/starpinker still be hardlink?