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
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
Use the
-B1
parameter todu
:You could also try the
--apparent-size
flagdu - estimate file space usage
For Example,
seems to do the trick