Re: Total in ls -la

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Vian: 
>>> That is the size of the directory and its contents in kB.  It is
>>> displayed with all 'ls' output using the -l flag.

Tim: 
>> Are you sure about that?  I couldn't find any reference inside Fedora
>> about it.  Something else, more general about Linux, said it was in
>> "blocks."
 
Jeff Vian:
> I am sure.  See below.
> 
> [root@raptor download]# ls -al movie
> total 1080028
> drwxrwxr-x   2 jeff jeff      4096 Oct 31  2005 .
> drwxrwxr-x 110 jeff jeff      4096 Oct 27 18:23 ..
> -rw-r--r--   1 jeff jeff 820366348 Aug 12  2005 myhomemovie.mpg
> -rw-r--r--   1 jeff jeff 284465240 Sep 26  2002 myhomemovie2.mpg

That kind of proves my point.  You have 1.1 GB of files in that
directory, but the "total" is just a little over 1 million.  It can't be
a total stated in the kilobytes.

> [root@raptor download]# du -s movie
> 1080020 movie

"du" also works in blocks, unless you specify that it give you an output
in another way.  Likewise, with "df".

-- 
(Currently testing FC5, but still running FC4, if that's important.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux