Difference between revisions of "Aws s3 ls"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html
+
<code>[[aws s3 ls]]</code> <ref>https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html</ref>
  
 
Listing all user owned buckets:
 
Listing all user owned buckets:
Line 9: Line 9:
 
* <code>aws s3 ls s3://mybucket [[--recursive]]</code>
 
* <code>aws s3 ls s3://mybucket [[--recursive]]</code>
 
* <code>[[aws s3 ls --summarize --recursive --human-readable]] s3://your-bucket</code>
 
* <code>[[aws s3 ls --summarize --recursive --human-readable]] s3://your-bucket</code>
 +
* <code>[[aws s3 ls --no-sign-request]]</code>
  
  
Line 28: Line 29:
  
 
== Errors ==
 
== Errors ==
* <code>[[An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied]]</code>
+
{{s3 errors TOC}}
* <code>[[An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.]]</code>
 
  
 
== Related terms ==
 
== Related terms ==
Line 46: Line 46:
 
* <code>[[gsutil ls]]</code>
 
* <code>[[gsutil ls]]</code>
 
* <code>[[ibmcloud cos list-buckets]]</code>
 
* <code>[[ibmcloud cos list-buckets]]</code>
* [[s3:ListBucket]]
+
* <code>[[s3:ListBucket]]</code>
* [[s3:ListAllMyBuckets]]
+
* <code>[[s3:ListAllMyBuckets]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 13:19, 12 June 2024

aws s3 ls [1]

Listing all user owned buckets:

Listing bucket content:


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[edit]

Related terms[edit]

See also[edit]

Advertising: