Human readable size on s3cmd
s3cmd is, by now, the best command-line tool to manage S3 buckets. Sometimes, you will need to know the size of some of your buckets. To find it, you will need to run:
$ s3cmd du s3://my-bucket
2258816953 s3://my-bucket
The value is in bytes, so you will need to do some math to transform it to MB, GB, TB or anything you want. Or, you can use the -H option (--human-readable-sizes):
$ s3cmd du -H s3://my-bucket
2G s3://my-bucket
Written by Boris Quiroz
Related protips
2 Responses
Thanks, this was helpful!!
over 1 year ago
·
Just what I was looking for...Cheers!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#S3
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#