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 in AWS by Varsha
19 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 by Parth

    Related Questions In AWS

    0 votes
    1 answer
    +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
    • 56,540 points
    1,282 views
    0 votes
    1 answer

    How to download the latest file in a S3 bucket using AWS CLI?

    You can use the below command $ aws ...READ MORE

    answered Sep 6, 2018 in AWS by Archana
    • 4,090 points
    3,801 views