Google Cloud Storage gsutil

We have seen that using the Google Cloud Storage browser is simple and intuitive. But in some cases it is necessary to operate through a command window. In such cases, as we have seen in previous sections, we can use gsutil. Previously, we had already seen a series of commands via gsutil.

To create a bucket using gsutil, use the mb command. For example, use the following command:

gsutil mb gs://NameBucket1

This creates a bucket named NameBucket1. It is important to remember that bucket names must be unique within the entire Google Storage namespace. If another user has already created a bucket with the name we want to use, we must choose another name.

Once the buckets are created, we can import the objects within ...

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.