Editing file from Sublime Text 2 from Command Line

2019-07-17 15:38发布

问题:

I'm developing Ruby on Rails application on a Windows 7 machine but running it on a Linux Ubuntu Virtual Box using Vagrant. I need to access the Postgres pg_hba.conf file and edit it using Sublime Text 2. It's in the /Vagrant/etc path so I have to access from command line. Please let me know - I appreciate the help.

回答1:

Do you really need to edit it with Sublime Text 2?

If you have access to it at the command line, then why not just use an editor in the Ubuntu environment? You should have nano available.