mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 17:02:39 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/aws-s3-ls
Normal file
33
tldr/aws-s3-ls
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aws s3 ls
|
||||
|
||||
> List AWS S3 buckets, folders (prefixes), and files (objects).
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/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://{{bucket_name}}`
|
||||
|
||||
- List 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_name}}`
|
||||
|
||||
- List all files in a path with a given prefix:
|
||||
|
||||
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory/}}{{prefix}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`aws s3 ls help`
|
||||
Reference in New Issue
Block a user