
上QQ阅读APP看书,第一时间看更新
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.