I know that the same inode can be used in different file systems. For example, home run dev boot and / directory have inode number 2 because they are the first directories in file systems.
$ ls -li
2 drwxr-xr-x 4 root root 4096 Sep 20 23:53 boot
2 drwxr-xr-x 19 root root 4200 Oct 6 00:14 dev
2 drwxr-xr-x 12 root root 4096 Sep 27 08:48 home
...
2 drwxr-xr-x 34 root root 940 Oct 6 00:14 run
...
For example, when I am in the home directory, inode number 2 appears as the parent folder.
:/home$ ls -lai
total 60
2 drwxr-xr-x 12 root root 4096 Sep 27 08:48 .
2 drwxr-xr-x 19 root root 4096 Apr 30 18:26 ..
...
Many file systems connected to the system have inode number 2. Why do I return to the / directory and not one of the other 2 inode folders when I use ".." ? After all, they are all folders with the same inode of separate file systems.
..
? – muru Oct 06 '21 at 04:43-r
). – muru Oct 06 '21 at 06:33fsck
afterwards. So it's still impractical. – Kusalananda Oct 06 '21 at 06:43