I am using du -sh
to see the size of directories. If I check a 1KB directory, I will see:
1.0K .
However, I want the output in bytes, and only the bytecount.
For example:
$ du -sh .
1024
To get size in bytes you should use command on this way:
du -sb
(this b
mean bytes)
for the du
which do not work properly with -b
you can use
du -s --block-size=1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With