Sinoosh Asked: 2016-07-07 12:17:46 +0800 CST2016-07-07 12:17:46 +0800 CST 2016-07-07 12:17:46 +0800 CST Default number of links for directory? 772 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? directory 1 Answers Voted Best Answer Jacob Vlijm 2016-07-07T12:24:06+08:002016-07-07T12:24:06+08:00 Short answer: The number of links to a directory is at least two: The link to the parent directory The link to itself 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.
Short answer:
The number of links to a directory is at least two:
See also here: