| Main Page > Browse Categories > How-To > How to calculate the total size of a bucket |
How to calculate the total size of a bucket
To calculate the total size of all objects contained in a S3 bucket, use the following command:
ls my_bucket_name -s -sum
where:
my_bucket_name is the name of your bucket
-s is used to include all subfolders (e.g. recursive)
-sum is used to show just a summary without listing all objects.
The output will be similar to the following:
Bucket: my_bucket_name
5417 Files (10.74GB = 11533607629B)
Attachments
No attachments
Did this help you?
Yes No
Statistics
38% found this information useful
Other Options
Printable Version
General Information
No. 14
Author: S3Express
Download S3Express
No attachments
Did this help you?
Yes No
Statistics
38% found this information useful
Other Options
Printable Version
General Information
No. 14
Author: S3Express
Download S3Express
A printable version of the entire S3Express FAQ and Knowledge Base is also available.
For further queries, please contact us by E-Mail at support@s3express.com
User Comments