I learned that in fact the file names and the files themselves are not directly related. The name files themselves do not have, they have only indexes. And the file system (in this case, ext2 ) associates invented names with file indices. And hard links are two different names for one index, but hard links cannot be created to a directory. I went into / and the ls -il got something like the following:
1 dr-xr-xr-x 232 root root 0 июн 26 17:14 proc 16252929 drwx------ 5 root root 4096 июн 26 17:12 root ......................................................... 1 dr-xr-xr-x 13 root root 0 июн 26 22:56 sys Where the first number is the inode. It turns out that the proc and sys directories have one file? How is this possible? After all, there should be no hard links, and the number of these links is different ( 232 and 13 )