use du --apparent-size -k
do manual :
‘--apparent-size’
Print apparent sizes, rather than disk usage. The apparent size of a file is the number of bytes reported by
wc -c
on regular files, or more generally,ls -l --block-size=1
orstat --format=%s
. For example, a file containing the word‘zoo’
with no newline would, of course, have an apparent size of 3. Such a small file may require anywhere from 0 to 16 KiB or more of disk space, depending on the type and configuration of the file system on which the file resides. However, a sparse file created with this command:dd bs=1 seek=2GiB if=/dev/null of=big
has an apparent size of 2 GiB, yet on most modern systems, it actually uses almost no disk space.