aws s3 ls
List AWS S3 buckets, folders (prefixes), and files (objects). More information: https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html.
- List all buckets:
aws s3 ls
- List files and folders in the root of a bucket (
s3://is optional):
aws s3 ls s3://
- List files and folders directly inside a directory:
aws s3 ls //
- List all files in a bucket:
aws s3 ls --recursive
- List all files in a path with a given prefix:
aws s3 ls --recursive //
- Display help:
aws s3 ls help
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
