LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to list true size of files with holes (https://www.linuxquestions.org/questions/linux-server-73/how-to-list-true-size-of-files-with-holes-896849/)

bigteks 08-11-2011 05:51 PM

How to list true size of files with holes
 
I don't think 'ls' has a flag for this. Is there a command or simple script to list files with actual disk space consumed for each - in other words the thin or sparse size, as opposed to what 'ls' reports?

syg00 08-11-2011 06:34 PM

Check out the wikipedia article.

GlennsPref 08-11-2011 06:34 PM

Quote:

Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
:)

Change to the dir you wish to investigate,

type,
Code:

du
type,
Code:

du --help
for more on du.

Hope this helps. Regards Glenn

du is disk-usage, there is another df, disk-free. ;-)

pljvaldez 08-11-2011 06:38 PM

Maybe this will help a bit. No specific solution, but it does show blocks used in ls -ls

http://administratosphere.wordpress....t-why-and-how/


All times are GMT -5. The time now is 06:58 PM.