You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gsutil acl get gs://$BUCKET_NAME_1/setup.html > acl.txt
Rewriting File
gsutil rewrite -k gs://$BUCKET_NAME_1/setup2.html
Bucket Lifecycle
### View lifecycle for the bucket
gsutil lifecycle get gs://$BUCKET_NAME_1
### Setting Lifecycle Policy on a Bucket
gsutil lifecycle set life.json gs://$BUCKET_NAME_1
Store Bucket Versioning
### Get Versioning for a Bucket
gsutil versioning get gs://$BUCKET_NAME_1
### Set Versioning for a Bucket
gsutil versioning set on gs://$BUCKET_NAME_1
Google Storage
## View Files in Storage Bucket
gsutil cat gs://$BUCKET_NAME_2/$FILE_NAME