Amanda-Users

Re: bug in disklist?

2003-05-21 10:54:24
Subject: Re: bug in disklist?
From: Frank Smith <fsmith AT hoovers DOT com>
To: Mats Blomstrand <mats.blomstrand AT htu DOT se>
Date: Wed, 21 May 2003 09:50:27 -0500
--On Wednesday, May 21, 2003 14:48:50 +0200 Mats Blomstrand <mats.blomstrand AT 
htu DOT se> wrote:

Here is another possible one.  Maybe your directory, even minus what
Please! I know my $HOME ...

        $ ls -la /home/blom |head -1
        total 221696
        $

The size summary line in ls -al returns the total size of the files at
that level, not including the size of files in subdirectories (it does
include the size of the subdirectory entry itself, just not the files
inside the subdirectory).
 For example, on my home directory:
$ ls -la /home/frank | head -1
total 243225

but a du (which includes all subdirectories) shows:
$ du -sk /home/frank
1337571 /home/frank


Frank

--
Frank Smith                                             fsmith AT hoovers DOT 
com
Systems Administrator                                  Voice: 512-374-4673
Hoover's Online                                          Fax: 512-374-4501

<Prev in Thread] Current Thread [Next in Thread>