Search code examples
terminalgcloudgoogle-cloud-shell

How to Save Terminal Text from Google Cloud Shell?


I'd like to save the entire terminal text after running a series of commands in Google Cloud Shell similar to the Export Text As... option on MacOS Terminal.

Is the script command my answer or is there a gcloud thing I could use?


Solution

  • Cloud Shell runs a debian based OS therefor script command will work.

    Once you have the file if you want to download you can get the full path with pwd and then download option on the the points options menu