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?
Ubuntu – How to show actual size and allocated size on disk of a file in Ubuntu
diskdisk-usagefiles
Related Question
- Ubuntu – Why is `df -h` not showing the whole disk space
- Ubuntu – How to list all files and folders beyond a specified size limit
- Ubuntu – Why do du -sh and the file manager disagree
- Ubuntu – Ubuntu think the text file is “C source code” file
- Ubuntu – How to sort folders by actual size, instead of amount of sub-folders or files
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.