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
4,222 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,140 points
    1,631 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 4, 2020 in AWS by MD
    • 95,140 points
    165 views
    +1 vote
    3 answers

    How to get ARN for s3 Bucket using aws cli .

    An ARN is a non-opaque, constructible identifier, ...READ MORE

    answered Aug 16, 2018 in AWS by Priyaj
    • 58,100 points
    3,330 views
    0 votes
    1 answer
    0 votes
    2 answers
    +1 vote
    2 answers