Re: du

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

From: Luke Kanies
Subject: Re: du
Date: 20:06 on 30 Sep 2005
On Fri, 30 Sep 2005, Nicholas Clark wrote:

> 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.

Truthfully, I only threw in the 'almost' because I expected that without
it someone would pipe that on Plan 9 using filesystem from_mars the
poobah special device is basically a directory but only has on hard
link.

-- 
Aizu's Second Law:
    What changes the world is communication, not information.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://config.sage.org

There's stuff above here

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