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?
dfshowing more used space thanduis 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:5322GiBaccording todfor cca0.0207GiBaccording todu? (where I will thenrsyncit to floppy) – milanHrabos Jul 08 '20 at 23:0422146824coming fromdu -h? Which version ofdu? I thought22146824was in KiB (actually fromduwith 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