Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 2728  / 3 Years ago, wed, june 30, 2021, 1:51:07

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?


More From » files

 Answers
1

I can only answer for command line.


To show the actual size of the file:


du -b "file"


To show the allocated size of the file on disk: (= actual size rounded up to whole block size)


du -B 1 "file"


[#2538] Thursday, July 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
barted

Total Points: 424
Total Questions: 103
Total Answers: 101

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
barted questions
;