Last Updated: May 15, 2019
·
17.32K
· boris

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

2 Responses
Add your response

Thanks, this was helpful!!

over 1 year ago ·

Just what I was looking for...Cheers!

over 1 year ago ·