bug-coreutils
[Top][All Lists]
Advanced

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

bug#34110: feature request: dual-column du output, showing "real" and "o


From: Paul Eggert
Subject: bug#34110: feature request: dual-column du output, showing "real" and "on-disk" sizes (and about that "apparent-size" concept)
Date: Wed, 16 Jan 2019 16:28:14 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

I like the idea of two columns at once.

with "--apparent-size", du returns the actual file size; without, it returns 
how large the file appears to be (judging from its disk footprint).

The "apparent" size is the size that "ls -l" outputs, and is the size that traditional I/O operations like 'read' and 'write' deal with, regardless of the underlying implementation (where the size might be smaller or larger than the "apparent" size). In contrast the "disk usage" size is whatever the filesystem tells us it is. I wouldn't call either size the "actual" size these days, as even the disk usage (or "disk footprint") might be virtual blocks stored in a lower-level compressed device, and there's no way "du" can find out how much of the lower-level device is being used.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]