如何退出 GNU nano 编辑器?
只需按 Ctrl+X。如果你没有未保存的更改,这将立即退出 nano。
如果你有未保存的更改,它会在按下后询问你是否保存这些更改。
- 按
Y告诉它保存你所做的更改。然后它会要求你检查或输入要保存的文件名。完成文件名后,按 Enter。 - 按
N丢弃所有更改**(你之后将无法恢复你的更改)**并立即退出 nano。
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow