Cloud-9: How to open a file in the c9-editor from c9-terminal

后端 未结 6 1541
失恋的感觉
失恋的感觉 2020-12-23 20:41

Is there a way to open a file not from the workspace tree view but from the c9-terminal tab?

Background: c9 doesn´t allow me to set the workspace path to / for a use

6条回答
  •  情歌与酒
    2020-12-23 20:57

    You can do the next:

    cd ~
    ln -s / root
    

    Then you can see the root link in the workspace. You can navigate through it and open any file (If you do not see the ~ folder in your favorites section, mark the 'Show Home in Favorites' option)

    If you prefer, (once you've installed c9) you can open files from the terminal with:

    c9 open ~/root/...
    

    NOTE: You can open files but not save them if they require superuser permissions.

提交回复
热议问题