List objects
The List (ls) operation lists objects and common prefixes under a prefix
or all buckets.
Example: List all buckets
aws --endpoint-url=https://somename.example.com/ s3 ls
Example: List all objects under a specific bucket with the --page-size parameter
aws --endpoint-url=https://somename.example.com/ s3 ls s3://sample --page-size=2 1
1 The --page-size parameter can limit the number of results in each response to a list operation.
The default and maximum allowed value is 1000. Using a smaller value may help if an operation times out.