You are currently viewing How To Create A Bucket And Object In Cloud Storage Using gsutil

How To Create A Bucket And Object In Cloud Storage Using gsutil

How To Create A Bucket and Object In Cloud Storage Using gsutil

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed key concepts of cloud storage.

https://cloudaffaire.com/cloud-storage-in-gcp/

In this blog post, we will discuss how to create a bucket and object in cloud storage using gsutil.

How To Create A Bucket and Object In Cloud Storage Using gsutil:

Step 1: Install and configure gsutil.

Step 2: Create a bucket using gsutil mb command.

Step 3: Create an object using gsutil cp command.

Step 4: List your bucket/objects using gsutil ls command.

Step 5: Rename your object using gsutil mv command.

Step 6: Display the content of your object using gsutil cat command.

Step 7: Delete your object using gsutil rm command.

Step 8: Delete your bucket using gsutil rb command.

Hope you have enjoyed this article. In the next blog post, we will discuss versioning in cloud storage.

To get more details on cloud storage, please refer below GCP documentation.

https://cloud.google.com/storage/docs/

https://cloud.google.com/storage/docs/gsutil

 

Leave a Reply