Editing Aws s3 ls

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>[[aws s3 ls]]</code> <ref>https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html</ref>
+
https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html
  
 
Listing all user owned buckets:
 
Listing all user owned buckets:
Line 7: Line 7:
 
Listing [[bucket]] content:
 
Listing [[bucket]] content:
 
* <code>[[aws s3]] ls your_bucket_name</code>
 
* <code>[[aws s3]] ls your_bucket_name</code>
* <code>aws s3 ls s3://mybucket [[--recursive]]</code>
 
* <code>[[aws s3 ls --summarize --recursive --human-readable]] s3://your-bucket</code>
 
 
 
S3 bucket size:
 
[[aws s3 ls --summarize --recursive --human-readable]] 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 ==
{{s3 errors TOC}}
+
* <code>[[An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied]]</code>
 +
* <code>[[An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[aws list all]]</code>
 
* <code>[[aws list all]]</code>
* <code>[[aws s3api get-bucket-versioning]] --bucket YOUR_BUCKET_NAME --output text</code>
+
* <code>[[aws s3api list-buckets]]</code>
* <code>[[aws s3api list-buckets]] --output text</code>
 
* <code>[[aws s3api get-bucket-tagging]] --bucket your_bucket_name</code>
 
 
* <code>[[aws s3api get-bucket-policy --bucket]] YOUR_BUCKET_NAME</code>
 
* <code>[[aws s3api get-bucket-policy --bucket]] YOUR_BUCKET_NAME</code>
* <code>[[s3cmd du]]</code>
 
* <code>[[for]] BUCKET_NAME in `[[aws s3 ls]]| awk '{print $3}'`; do echo $BUCKET_NAME; [[aws s3api get-bucket-versioning]] --bucket $BUCKET_NAME --output text; done</code>
 
 
* <code>aws s3 ls| awk '{print $3}' | parallel "echo {}; aws s3api get-bucket-versioning --bucket {} --output text"</code>
 
* <code>[[aws iam list-virtual-mfa-devices]]</code>
 
* [[Boto3: aws_s3_ls]]
 
* <code>[[awswhoami]]</code>
 
* <code>[[gsutil ls]]</code>
 
* <code>[[ibmcloud cos list-buckets]]</code>
 
* [[s3:ListBucket]]
 
* [[s3:ListAllMyBuckets]]
 
  
 
== See also ==
 
== See also ==
 
* {{aws s3}}
 
* {{aws s3}}
* {{aws s3api}}
 
* {{aws s3control}}
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: