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
7,607 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,440 points
    5,143 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,440 points
    1,195 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,670 points
    654 views
    0 votes
    1 answer
    0 votes
    2 answers
    +1 vote
    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