Alon Altman wrote:
On Wed, 8 Jun 2005, Ira Abramov wrote:
/boot has no subdirectories, /usr has 11, and /var has 19. all show a
link count of n+3.
a. is this corect? I thought n+2 was the right number, like Samhain
suggests.
n+3 (parent, ., and ..).
".." does not point to that directory. It points to the parent
directory. In Ira's case - the "boot" entry in / points to the inode, as
well as the "." entry in /boot. However, the ".." entry in /boot points
to the / inode.
If the directory is the root, ".." indeed points back at it, but then it
doesn't have a parent, you are still left with n+2.
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]