12

"ls -lh" reports total size less than sum of individual sizes

view full story
linux-howto

http://unix.stackexchange.com – Under what circumstances would ls -lh show a total that is less than the sum of the individual files? For example: $ ls -lh /var/lib/nova/instances/_base total 100G -rw-rw-r-- 1 nova nova 4.3M 2012-02-14 14:07 00000001 -rw-rw-r-- 1 nova nova 5.7M 2012-02-14 14:07 00000002 -rw-rw-r-- 1 nova nova 42G 2012-03-08 15:24 1574bddb75c78a6fd2251d61e2993b5146201319.part -rw-rw-r-- 1 libvirt-qemu kvm 24M 2012-02-14 14:07 77de68daecd823babbb58edb1c8e14d7106e83bb_sm -rw-r--r-- 1 libvirt-qemu kvm 65G 2012-03-02 12:43 bd307a3ec329e10a2cff8fb87480823da114f8f4 -rw-rw-r-- 1 libvirt (HowTos)