将SSH SSH到一个无所事事的虚拟盒子中时,从命令行从Sublime Text 2编辑文件(Linux Ubuntu机器) [英] Editing file from Sublime Text 2 from Command Line when SSH'd into a Vagrant Virtual Box (Linux Ubuntu Machine)

查看:150
本文介绍了将SSH SSH到一个无所事事的虚拟盒子中时,从命令行从Sublime Text 2编辑文件(Linux Ubuntu机器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7计算机上开发Ruby on Rails应用程序,但正在使用Vagrant在Linux Ubuntu Virtual Box上运行它。我需要访问Postgres pg_hba.conf文件,并使用Sublime Text 2对其进行编辑。它位于/ Vagrant / etc路径中,因此必须从命令行进行访问。请让我知道-感谢您的帮助。

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.

推荐答案

您真的需要使用Sublime Text 2对其进行编辑吗?

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

如果您可以在命令行中访问它,为什么不在Ubuntu环境中使用编辑器呢?您应该有 nano 可用。

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.

这篇关于将SSH SSH到一个无所事事的虚拟盒子中时,从命令行从Sublime Text 2编辑文件(Linux Ubuntu机器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆