Total in ls -la
Tim
ignored_mailbox at yahoo.com.au
Thu Nov 9 02:39:47 UTC 2006
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 at 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 at 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.
More information about the users
mailing list