Skip to content

Instantly share code, notes, and snippets.

@ctkdev
Last active January 10, 2018 17:17
Show Gist options
  • Save ctkdev/013465f867895597e72597c49cc2cefe to your computer and use it in GitHub Desktop.
Save ctkdev/013465f867895597e72597c49cc2cefe to your computer and use it in GitHub Desktop.
Summarizing the total number of Amazon AWS S3 objects in a bucket along with the total size
$ aws s3 ls --summarize --human-readable --recursive s3://bucket-name-o/
# output will look similar to the following:
Total Objects: 5702031
Total Size: 91851.8 GiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment