If I run from android shell the df
command I get the sizes of all filesystems in human readable numbers. It seems that the command doesn't take any options (e.g. -something
).
I want to get the exact size of the filesystem (in bytes).
I know I can get the sizes by creating an app which uses statfs. Is there any OTHER WAY to do it (via command)?
Yes, as long as busybox is installed. (And if not, you could prompt the user to install it.)
You can use
busybox df -B 1
to get a report in bytes.
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