0 Ratings Rate it

Command to copy file
gsutil cp Source-path Destination-path(starting with gs://)
eg: gsutil cp C:\Users\Khushaboo\Desktop\IMG_20190630_153237.jpg gs://mytutorial-demo-bucket2020

Command to copy a folder
gsutil cp -r Source-path Destination-path(starting with gs://)
eg: gsutil cp -r C:\Users\Khushaboo\Desktop\khush gs://mytutorial-demo-bucket2020

Command to list objects in the bucket
gsutil ls gs://BUCKET_NAME
eg: gsutil ls gs://mytutorial-demo-bucket2020

Command to make bucket
gsutil mb -c regional -l us-central1 gs://NEW_BUCKET_NAME
eg: gsutil mb -c regional -l us-central1 gs://mytutorial-demo-jan-2020

Command to set the object or bucket publically accessible
gsutil acl ch -u AllUsers:R gs://NEW_BUCKET_NAME/OBJECT_NAME
eg: gsutil acl ch -u AllUsers:R gs://mytutorial-demo-jan2020
eg: gsutil acl ch -u AllUsers:R gs://mytutorial-demo-jan2020/file1.txt

#googlestorage #googleconsole


0 Ratings Rate it

Written by admin