Created
October 26, 2014 17:34
-
-
Save stefhen/06e9e87cb28eb46b9e34 to your computer and use it in GitHub Desktop.
aws cli s3 du
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 ls s3://bucket --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024/1024" GB"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case anybody else needs an
ncdu
-like thingy: https://gist.github.com/matiasgarciaisaia/c57d9804c75898ac2fb743e1daa3303b