Editing file from Sublime Text 2 from Command Line when SSH'd into a Vagrant Virtual Box (Linux Ubuntu Machine)

StackOverflow https://stackoverflow.com//questions/11663562

Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top