Forrest logo
back to the aws tool

aws-s3-ls:tldr:06e1d

aws-s3-ls: List all buckets.
$ aws s3 ls
try on your machine

The command "aws s3 ls" is used to list the objects (files and folders) in an Amazon S3 bucket.

Here's a breakdown of the command:

  • "aws" is the AWS Command Line Interface (CLI) command.
  • "s3" refers to the Amazon S3 service.
  • "ls" is an abbreviation for "list," indicating that we want to retrieve a list of objects in the specified S3 bucket.

When executed, the command will list the objects in the default S3 bucket associated with the AWS CLI configuration. Alternatively, you can specify a particular bucket using the "--bucket" parameter followed by the bucket name.

The output of this command typically includes information such as the last modified timestamp of the objects, their size, and their names.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool