Skip to content

Instantly share code, notes, and snippets.

@stefhen
Created October 26, 2014 17:34
Show Gist options
  • Save stefhen/06e9e87cb28eb46b9e34 to your computer and use it in GitHub Desktop.
Save stefhen/06e9e87cb28eb46b9e34 to your computer and use it in GitHub Desktop.
aws cli s3 du
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"}'
@matiasgarciaisaia
Copy link

In case anybody else needs an ncdu-like thingy: https://gist.github.com/matiasgarciaisaia/c57d9804c75898ac2fb743e1daa3303b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment