gsutil

gsutil is the command-line tool, a subset of gcloud shell scripts, that allows you to manage buckets and objects (files) on Google Storage. The operations available via gsutil go from simple straightforward commands for creating buckets and moving files around, to management commands to manage settings, storage class, and permissions. More advanced commands include setting access control via ACLs, defining life cycle rules (delete all files after 1 year), logging, creating notifications, and troubleshooting with perfdiag.

Let's start with the simple commands. We will create a bucket named packt-gcp, upload some files, get info on these files, move them around, and change the storage class.

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.