View total size of an S3 bucket - aws cli

0 votes
I'd like to view the total size of a bucket from the cli. Is there a command for it?
Aug 23, 2019 in AWS by Varsha
8,092 views

1 answer to this question.

0 votes

To view stats about a bucket, which includes its total size, use the following command:

$ aws s3 ls s3://bucket/path/to/directory/ --summarize --human-readable --recursive
    answered Aug 23, 2019 by Parth

    Related Questions In AWS

    0 votes
    1 answer

    How to measure the total size of an S3 bucket using python?

    Hi@akhtar, You can do this tasks using Boto. ...READ MORE

    answered Apr 15, 2020 in AWS by MD
    • 95,460 points
    5,636 views
    0 votes
    1 answer
    0 votes
    1 answer

    How to get the size of an Amazon S3 bucket?

    Hi@akhtar, You can use AWS CLI to perform ...READ MORE

    answered Oct 5, 2020 in AWS by MD
    • 95,460 points
    1,573 views
    0 votes
    0 answers

    Get ARN of S3 Bucket with aws cli

    Is it possible to get the ARN ...READ MORE

    Apr 21, 2022 in AWS by Rahul
    • 9,680 points
    897 views
    0 votes
    1 answer
    0 votes
    2 answers
    +2 votes
    2 answers
    webinar REGISTER FOR FREE WEBINAR X
    REGISTER NOW
    webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP