I want to back up /home
dir, but the sudo du -h /home | tail -n1
shows
22146824 /home
however df -h
shows:
/dev/sda5 54G 22G 30G 42% /home
22*2^30 == 23622320128
The later number is much bigger then the first, and they should show the same disk usage? What number of space should I use, if I want to make partition on floppy disk?
df
showing more used space thandu
is deleted files. Refer to the exhaustive answer to the linked question for a list of other possible causes. – fra-san Jul 08 '20 at 22:5322GiB
according todf
or cca0.0207GiB
according todu
? (where I will thenrsync
it to floppy) – milanHrabos Jul 08 '20 at 23:0422146824
coming fromdu -h
? Which version ofdu
? I thought22146824
was in KiB (actually fromdu
with no-h
). The difference between the used space as reported by those two tools is usually modest (e.g. 66 MiB out of 114 GiB for my/
right now). – fra-san Jul 08 '20 at 23:13