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: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Linux command: Check Current Shell

What is your current shell ?

Java: Free Online Courses

The Java™ Tutorials by Oracle The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". https://docs.oracle.com/javase/tutorial/ Learn to Program in Java at edX.ogr Get started on the path to becoming a software engineer by learning core coding skills in Java—one of the most popular programming languages. https://www.edx.org/course/learn-to-program-in-java-0 Java Tutorial by javapoint.com https://www.javatpoint.com/java-tutorial Java Tutorial by SoloLearn.com I love SoloLearn because I can learn Java - and other popular programming languages - anywhere, any time on your mobile devices. https://www.sololearn.com/Course/Java/ Java on Azure https://docs.microsoft.com/en-us/learn/paths/java-on-azure/