Re: du

[prev] [thread] [next] [lurker] [Date index for 2005/09/30]

From: Nicholas Clark
Subject: Re: du
Date: 19:51 on 30 Sep 2005
On Fri, Sep 30, 2005 at 01:36:05PM -0500, Luke Kanies wrote:

> They're hard links (you'll have to look that one up).  A little known
> aspect of the output of ls -al is that it lists the number of hard links
> to a file, and directories (almost) always have >=2, because one is the

I realise that this is off topic for hating (and I will be hated by some
for this) but when doesn't a directory have a hard link count >= 2?
[on a filing system that doesn't cause all directories to report a link count
 of 1, as I believe is the case for most Unix mounted CDs]

.. of / is a link to itself, so it is always >= 2, and that's the obvious one
covered.

Nicholas Clark
There's stuff above here

Generated at 16:00 on 04 Oct 2005 by mariachi 0.52