ubuntu nano用法

举报
风吹稻花香 发表于 2021/06/06 00:36:45 2021/06/06
【摘要】   sudo /etc/profile   使用Ctrl+O来保存所做的修改 退出 按Ctrl+X 如果你修改了文件,下面会询问你是否需要保存修改。输入Y确认保存,输入N不保存,按Ctrl+C取消返回。如果输入了Y,下一步会让你输入想要保存的文件名。如果不需要修改文件名直接回车就行;若想要保存成别的名字(也就是另存为)则输入新名称然后确 定。这...

 

sudo /etc/profile

 

使用Ctrl+O来保存所做的修改

退出

按Ctrl+X

如果你修改了文件,下面会询问你是否需要保存修改。输入Y确认保存,输入N不保存,按Ctrl+C取消返回。如果输入了Y,下一步会让你输入想要保存的文件名。如果不需要修改文件名直接回车就行;若想要保存成别的名字(也就是另存为)则输入新名称然后确 定。这个时候也可用Ctrl+C来取消返回。

 

^表示键盘上的ctrl键,^G表示同时按下ctrl和g
(F1)表示按F1键 ,M-表示使用alt+后面的键

^G ==(F1) Invoke the help menu
调用帮助菜单

^X ==(F2) Close currently loaded file/Exit from nano
退出

^O ==(F3) Write the current file to disk == ^O WriteOut
保存
然后回车就保存了

^J ==(F4) Justify the current paragraph
调整当前段落(注意:编辑配置文件的不要用这东西,格式一下就出问题了哦)

^R ==(F5) Insert another file into the current one
插入其他的文件到当前的文件,而且查找文件的时候支持tab

^W ==(F6) Search for text within the editor
查找

^Y ==(F7) Move to the previous screen
上一屏幕

^V == ( F8 ) Move to the next screen
下一屏幕

^K ==(F9) Cut the current line and store it in the cutbuffer
裁减当前一排并保存在缓冲区

^U ==(F10) Uncut from the cutbuffer into the current line
将缓冲区的东西粘贴到此

^C ==(F11) Show the position of the cursor
显示光标位置

^T ==(F12) Invoke the spell checker, if available
调用拼写检查程序

^P Move up one line
向上移动一行

^N Move down one line
向下移动一行

^F Move forward one character
向前移动光标一格

^B Move back one character
向后移动光标一格

^A Move to the beginning of the current line
移动到当前行的开头

^E Move to the end of the current line
移动到当前行的末尾

^L Refresh (redraw) the current screen
刷新当前屏幕

^^ (M-A) Mark text at the current cursor location
标记文本

^D Delete the character under the cursor
删除光标后一个字母

^H Delete the character to the left of the cursor
向左边删一个字母

^I Insert a tab character
插入一个tab值

^\ (F14) (M-R) Replace text within the editor
查找并且替换

^M Insert a carriage return at the cursor position
插入一个回车

^_ (F13) (M-G) Go to a specific line number
跳转到某行

^Space Move forward one word
前进一个单词

M-Space Move backward one word
后退一个单词

M-] Find other bracket
搜索下一个括号

M-< Open previously loaded file
打开先前加载的文件

M-> Open next loaded file
打开下一个加载的文件

M-I Auto indent enable/disable
是否首行缩进

M-Z Suspend enable/disable
是否悬挂

M-X Help mode enable/disable
帮助模式

M-M Mouse support enable/disable
鼠标支持

M-Y Color syntax highlighting enable/disable
语法加亮

 

文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/jacke121/article/details/108430610

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。