09-17-2015, 04:14 AM
Not sure how we can improve on this, needs more research. Try:
Bytes:
MB:
See what happens to the total bytes when they get converted to MB.
Bytes:
Code:
jerry@z800:~$ df | grep '^/dev/[hs]d' | awk '{s+=$2} END {print s}'
2408682717
MB:
Code:
jerry@z800:~$ df | grep '^/dev/[hs]d' | awk '{s+=$2} END {print s/1048576}'
2297.1
jerry@z800:~$
See what happens to the total bytes when they get converted to MB.