I find that under my root directory, there are some directories that have the same inode number:
$ ls -aid */ .*/ 2 home/ 2 tmp/ 2 usr/ 2 var/ 2 ./ 2 ../ 1 sys/ 1 proc/
I only know that the directories' names are kept in the parent directory, and their data is kept in the inode of the directories themselves.
I'm confused here.
This is what I think when I trace the pathname /home/user1.
- First I get into the inode 2 which is the root directory which contains the directory lists.
- Then I find the name home paired with inode 2.
- So I go back to the disk to find inode 2?
- And I get the name user1 here?