Examples (6)
List all buckets
List files and folders in the root of a bucket (`s3://` is optional)
aws s3 ls s3://bucket_nameList files and folders directly inside a directory
aws s3 ls bucket_name/path/to/directory/List all files in a bucket
aws s3 ls --recursive bucket_nameList all files in a path with a given prefix
aws s3 ls --recursive bucket_name/path/to/directory/prefixmade by @shridhargupta | data from tldr-pages