Ubuntu – How to show actual size and allocated size on disk of a file in Ubuntu

diskdisk-usagefiles

I want to know both of them. It's like when you click properties of a file in Windows, it will shows two sizes (actual size and size on disk). How do I do that in Ubuntu?

Best Answer

I can only answer for command line.

du -b "file" gives you the actual size of the file.

du -B 1 "file" gives you the allocated size of the file on disk.