Nano - 如何保存和退出文件? [英] Nano - how to save and exit file?

查看:3558
本文介绍了Nano - 如何保存和退出文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之后;

sudo nano / etc / default / motion



并将行更改为:



start_motion_daemon =是



似乎我无法保存并退出nano。如何?



提前致谢



*绝对初学者*



我尝试了什么:



我理解nano是一个文件编辑器,我编辑了一个文件但是我不明白如何保存文件并退出nano?

After;
sudo nano /etc/default/motion

and change the line to:

start_motion_daemon=yes

Seems I fail to save and exit nano. How to?

Thanks in advance

*Absolute Beginner*

What I have tried:

I understand nano is a file editor and that I've edited a file but I don't understand how to save the file and exit nano?

推荐答案

看看你的屏幕。



Nano 在底部显示一个菜单部分。

最左上方的项目是 ^ G - 帮助而下面的一个是 ^ X - 退出。还有 ^ O - 保存



这是的常用语法^ 字符表示必须与后续字符键一起按下的控制键。



退出 nano ,按 Ctrl + X 。如果文件已被修改,系统将提示您保存,就像使用任何其他文本编辑器一样。
Have a look on your screen.

Nano displays a menu section at the bottom.
The upper left-most item is ^G - Help and the lower one is ^X - Exit. There is also ^O - Save.

This is a common syntax where the ^ character indicates the control key which has to be pressed together with the folling character key.

To exit nano, press Ctrl+X. If the file has been modified, you will be prompted for saving like with any other text editor.


了解如何使用 man 命令: nano(1) - Linux手册页 [ ^ ]。
Learn how to make use of the man command: nano(1) - Linux man page[^].


这篇关于Nano - 如何保存和退出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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