LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What does 'total' in the long listing(ls -l) refer to ? (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-total-in-the-long-listing-ls-l-refer-to-660871/)

Sugarboy 08-06-2008 08:43 AM

What does 'total' in the long listing(ls -l) refer to ?
 
Hi,

Could you please let me know What does 'total' in the long listing(ls -l) refer to ?

Thanks,
Sagar

bigrigdriver 08-06-2008 09:05 AM

The sum of the file sizes in the listing.

matthewg42 08-06-2008 09:10 AM

It is the total disk space taken up by the files in the directory. This includes the size of sub-directories (but not their contents - the directory itself uses some space to record the names of it's contents and file meta data).

Note that the total space used is rounded up because each file takes an integer number of blocks on the device - once a block is used by a file, the whole block is un-available for other files, even if the amount of space used within the block is very small.

A typical block size is 4k, so the total amount will usually be some multiple of 4.

Sugarboy 08-07-2008 02:00 AM

Thanks Much Matthew....


All times are GMT -5. The time now is 01:39 AM.