Skip to main content

GCP: Google Cloud Shell

Start Google Cloud Shell

Google Cloud Shell is a tool for managing resources hosted on Google Cloud Platform! The machine comes pre-installed with the Google Cloud SDK and other popular developer tools.

Google Cloud Shell is free for customers of Google Cloud Platform.

Google Cloud Shell is free for all users

Features

  • Web Browser Access
  • 5GB of Persistent Disk Storage (home disk)

If you don't access Cloud Shell for 120 days, your home disk is deleted. You are notified by email before the deletion. To prevent your home disk from being deleted, [just]start a session.

tuyendq@cloudshell:~ (practicehabits)$ cat README-cloudshell.txt

Welcome to Google Cloud Shell, a tool for managing resources hosted on Google Cloud Platform!
The machine comes pre-installed with the Google Cloud SDK and other popular developer tools.

Your 5GB home directory will persist across sessions, but the VM is ephemeral and will be reset
approximately 20 minutes after your session ends. No system-wide change will persist beyond that.

Type "gcloud help" to get help on using Cloud SDK. For more examples, visit
https://cloud.google.com/shell/docs/quickstart and https://cloud.google.com/shell/docs/examples

Type "cloudshell help" to get help on using the "cloudshell" utility.  Common functionality is
aliased to short commands in your shell, for example, you can type "dl <filename>" at Bash prompt to
download a file. Type "cloudshell aliases" to see these commands.

Type "help" to see this message any time. Type "builtin help" to see Bash interpreter help.

tuyendq@cloudshell:~ (practicehabits)$

gcloud shell cheat sheet

export PROJECT_ID = $(gcloud config get-value project) : Get project id
gcloud projects delete PROJECT_ID : Delete project with id PROJECT_ID
gcloud compute instances start INSTANCE_NAMES [INSTANCE_NAMES …] [--zone=ZONE]
gcloud compute instances describe INSTANCE_NAME_HERE

Popular posts from this blog

Powershell: Remove-Item

Use Remove-Item to delete files, folders, and more than that

Qubes OS: Fedora 30

Create a new Standalone VM based on fedora-29 VM template Extend root partition: run command on dom0 tuyen@dom0:~ $ qvm-volume extend fedora-30:root 12288MB Set qrexec_timeout to 600 seconds tuyen@dom0:~ $ qvm-pref --set fedora-30 qrexec_timeout 600 $ sudo dnf upgrade --refresh $ sudo dnf install dnf-plugin-sytem-upgrade $ sudo dnf system-upgrade download --release=30 Install fedora-30 template Run the following command on dom0 terminal $ sudo qubes-dom0-update qubes-template-fedora-30 Install Adobe Flash Player Adobe Flash Player will not go away soon. So, let's grab the latest version of Adobe Flash Player , then install using yum or dnf command. Verify if Adobe Flash Player is installed and works by visiting https://helpx.adobe.com/flash-player.html [user@fedora-30 ~]$ sudo dnf install Downloads/flash-player-npapi-32.0.0.238-release.x86_64.rpm Last metadata expiration check: 0:37:03 ago on Fri Aug 30 09:18:10 2019. Dependencies resolved. =========...