Size on disk versus file size
Finder often shows the length of a file. dux shows the space it occupies on disk and what removing it really frees. Each of these is a correct answer to a different question:
- On disk is the space a file really uses. Sparse and compressed files use less than their length.
- Can be freed is what moving the item to the Bin would free once the Bin is emptied. Hard links and APFS clones lower this number, because another name or copy still holds the data.
- Logical size is the length of the file, the number Finder shows as size.
- Online only cloud files use no space on this Mac.
Folders dux could not read are counted as unknown, not zero. See Full Disk Access.
Finder and Storage settings disagree too
The free space figures differ for another reason. Storage settings and
Finder count purgeable space as available: local Time Machine
snapshots and iCloud files that are already in the cloud, which macOS
removes when it needs the room. Terminal’s df counts only space that
is empty right now, and the dux Overview shows purgeable and free space
apart. On a Mac with Time Machine and a busy iCloud Drive, the gap can
be tens of gigabytes.
Where to read more
- Purgeable space on macOS explained covers what sits in that gap.
- Time Machine local snapshots shows how to list and thin them.
- iCloud Drive and Optimise Mac Storage explains why a cloud folder can look huge in Finder and use almost nothing on disk.
