Difference between revisions of "Aws s3 ls"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
S3 bucket size: | S3 bucket size: | ||
− | + | [[aws s3 ls --summarize]] --human-readable --recursive s3://your_bucket_name | |
+ | 2013-09-02 21:37:53 10 Bytes a.txt | ||
+ | 2013-09-02 21:37:53 2.9 MiB foo.zip | ||
+ | 2013-09-02 21:32:57 23 Bytes foo/bar/.baz/a | ||
+ | 2013-09-02 21:32:58 41 Bytes foo/bar/.baz/b | ||
+ | 2013-09-02 21:32:57 281 Bytes foo/bar/.baz/c | ||
+ | 2013-09-02 21:32:57 73 Bytes foo/bar/.baz/d | ||
+ | 2013-09-02 21:32:57 452 Bytes foo/bar/.baz/e | ||
+ | 2013-09-02 21:32:57 896 Bytes foo/bar/.baz/hooks/bar | ||
+ | 2013-09-02 21:32:57 189 Bytes foo/bar/.baz/hooks/foo | ||
+ | 2013-09-02 21:32:57 398 Bytes z.txt | ||
+ | |||
+ | Total Objects: 10 | ||
+ | Total Size: 2.9 MiB | ||
== Errors == | == Errors == |
Revision as of 08:19, 21 February 2022
https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html
Listing all user owned buckets:
aws s3 ls
Listing bucket content:
aws s3 ls your_bucket_name
aws s3 ls s3://mybucket --recursive
S3 bucket size:
aws s3 ls --summarize --human-readable --recursive s3://your_bucket_name 2013-09-02 21:37:53 10 Bytes a.txt 2013-09-02 21:37:53 2.9 MiB foo.zip 2013-09-02 21:32:57 23 Bytes foo/bar/.baz/a 2013-09-02 21:32:58 41 Bytes foo/bar/.baz/b 2013-09-02 21:32:57 281 Bytes foo/bar/.baz/c 2013-09-02 21:32:57 73 Bytes foo/bar/.baz/d 2013-09-02 21:32:57 452 Bytes foo/bar/.baz/e 2013-09-02 21:32:57 896 Bytes foo/bar/.baz/hooks/bar 2013-09-02 21:32:57 189 Bytes foo/bar/.baz/hooks/foo 2013-09-02 21:32:57 398 Bytes z.txt Total Objects: 10 Total Size: 2.9 MiB
Errors
An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied
An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.
Related terms
aws list all
aws s3api list-buckets
aws s3api get-bucket-policy --bucket YOUR_BUCKET_NAME
See also
Advertising: