Written by James McDonald

February 5, 2018

Command to get a listing of each object and it’s size, the number of objects and their total size in human readable format:


aws s3 ls --summarize --human-readable --recursive s3://BUCKET_NAME/

# output is a really long listing ... with this format:
2018-02-04 20:33:31 2.2 MiB Pictures/Personal Photos/Vietnam/vietnam/2018-01-25/9890.JPG
2018-02-04 20:33:47 2.1 MiB Pictures/Personal Photos/Vietnam/vietnam/2018-01-25/9891.JPG
2018-02-04 20:33:31 2.2 MiB Pictures/Personal Photos/Vietnam/vietnam/2018-01-25/9893.JPG

Total Objects: 1699
Total Size: 5.1 GiB

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...