Ad space (banner)
AD

Got the fundamentals? A structured AWS course is a fast way to level up.

Find AWS courses on Udemy

Affiliate link. Costs you nothing extra.

☁️AWS Lessons
Lesson 19 / 41

Listing Objects with aws s3 ls

When you want to see what is inside a bucket, give aws s3 ls a bucket name. It lists that bucket's objects.

The syntax is aws s3 ls s3://bucket-name. Add a prefix to look inside a "folder."

Running aws s3 ls s3://my-bucket prints the date, size and key of each object.

A common stumble is thinking S3 has real folders. It doesn't — keys just contain slashes, and the folder appearance is a convenience.

In real work, it is how you confirm a deploy actually uploaded what you expected.

AWS
Try it (type this into the pseudo terminal)
aws s3 ls s3://my-bucket

🧑‍💻 You can type this command into the AWS pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)