linux - 如何保存对 OS X Yosemite 终端中编辑的文件的更改?

标签 linux macos command-line terminal mamp-pro

我正在按照本教程让我的 postfix 与 mamp pro 一起使用。 http://macnevada.net/mamp-pro-3-06-postfix-smart-host-not-working-on-osx-yosemite/

我一直很好地关注,但我现在需要在终端中保存对 main.cf 文件所做的更改。我对终端还很陌生。那么如何保存文件呢?

最佳答案

如果您使用的是 nano,屏幕底部应该有一个菜单,如下所示:

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line

在此菜单中,^ 代表控制 (ctrl) 键,因此要退出,请键入 CTRL-X。这将提示您保存文档。

关于linux - 如何保存对 OS X Yosemite 终端中编辑的文件的更改?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31732192/

相关文章:

javac -cp : cannot find symbol

linux - 获取最高 CPU 使用率 PID 并将其输出到文件

macos - 安装了 thrift 但是当尝试运行 thrift 命令时它说 Thrift : command not found

ios - 打开使用 xcode 8 创建的 Storyboard时,xcode 9 崩溃

c - 即使在 sublime text 2 中获得输出后如何保持命令提示符打开

unix - 在命令行中查找和替换多个文件

linux - bash 脚本的算术错误

c - 如何在不打印 C 中的新内容的情况下让终端刷新

linux - 链接器如何将程序头添加到可重定位文件?

macos - react 性 cocoa 中的管道转发运算符(operator)在行动中失踪,是的,我已经导入了 react 性 cocoa