I run a find command to search from root directory.
find / -inum 344334
The output gives the below warning:
find: WARNING: Hard link count is wrong for /proc/1. This may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
Also, all directories are having 2 hard link counts. I checked with the command
ls -li
I create a new directory with mkdir and see 2 link counts and when I search with inode number, I find only 1 directory file.
For regular files, the link count is fine.
---------- Post updated at 02:01 PM ---------- Previous update was at 01:42 PM ----------
A small change in my last command mentioned above. It is
ls -lid