Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in AWS by (19.1k points)

I'd like to view the total size of a bucket from the cli. Is there a command for it?

1 Answer

0 votes
by (44.4k points)

You can use the below command in the CLI to get all the details about a bucket which also includes the buckets total size. This is the easiest way to do this.

$ aws s3 ls s3://bucketname/foldername --summarize --human-readable --recursive

So this will list the information about the bucket you have mentioned. If you want to check for a particular folder, then provide the folder name.

--human-readable -- This will give the details is easy reable format

 

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer

Browse Categories

...