Is it possible to get a completely new instance of Google Cloud Shell?

五迷三道 提交于 2019-12-12 09:18:15

问题


I accidentally deleted some configuration files, and now the terminal no longer displays my_name@project_name:~$, but my_name@some_instance:~$. Is there a way to get a completely new instance for Cloud Shell?


回答1:


You can get your Cloud Shell home directory into clean state as follows:

  • Run ls -a $HOME and make sure you don't have any files you care about.
  • Run sudo rm -rf $HOME to delete the home directory.
  • In Cloud Shell menu, click the gear icon, then click "Restart Cloud Shell". Click "Restart Cloud Shell" in the dialog to confirm the action.
  • Wait until the new VM is provisioned. This may take a couple minutes. Since your home directory does not exist, the directory and the default configuration files will be recreated.
  • You should be good now.


来源:https://stackoverflow.com/questions/37709859/is-it-possible-to-get-a-completely-new-instance-of-google-cloud-shell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!