Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  27] [ 0]  / answers: 1 / hits: 57785  / 2 Years ago, wed, september 7, 2022, 3:38:21

I have a folder with 40 GB of dozens of directories and stuff, and I want to see the exact size of the root folder in bytes ..



I have tried using this, but it shows the size in kilobytes:



du -s foldername


More From » folder

 Answers
0

Use the -B1 parameter to du:



du -s -B1 foldername



$ man 1 du
-B, --block-size=SIZE
use SIZE-byte blocks



You could also try the --apparent-size flag


[#40340] Wednesday, September 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
erranbe

Total Points: 118
Total Questions: 95
Total Answers: 117

Location: Virgin Islands (U.S.)
Member since Tue, Jul 7, 2020
4 Years ago
erranbe questions
;