I know that hard link can not point to directories but when i create an empty directory and execute stat command for it
links=2 ,I search for symbolic links
There is not another link. why for directory the default numbers of links=2?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The number of links to a directory is at least two:
See also here:
The number of links is the number of hard links to the file. For a directory, the number of hard links is the number of (immediate) subdirectories plus the parent directory and itself.