Editing Google Cloud Shell

582 views
Skip to first unread message

Kathleen Juliff

unread,
Apr 12, 2018, 12:22:57 PM4/12/18
to Google App Engine

Is it possible to edit existing files from within the shell if they do not reside on your local hard drive?

Kenworth (Google Cloud Platform)

unread,
Apr 12, 2018, 1:40:48 PM4/12/18
to Google App Engine
Yes. Cloud Shell has built-in text editors like Emacs, Vim and Nano. 

Kathleen Juliff

unread,
Apr 12, 2018, 2:55:44 PM4/12/18
to Google App Engine
How do I evoke these editors?

Kenworth (Google Cloud Platform)

unread,
Apr 13, 2018, 12:44:16 PM4/13/18
to Google App Engine
On the Cloud Shell prompt, you can run the following sample commands to open the file for editing: 

For Vim:

 vim your_filename.text

Nano: 

 nano your_filename.text

Here are the results of a quick search for Emacs, Vim, and Nano cheat-sheets on the web.

As an alternative, you can also use the Cloud Shell Editor (Beta version). 








Reply all
Reply to author
Forward
0 new messages