shortcut keys for linux

<Ctrl><Alt><d>   Toggle hide/show the desktop (great to hide the Solitaire game when your boss walks in).


在输入命令时,经常会出现删除命令行中的某一个字符,修改某一个单词的情况。之前还一直使用方向键来进行控制,其实操作它们都是有诀窍的。

 

Cursor Movement


Key                                                           Action
CTRL-A                         Move cursor to the beginning of the line.
CTRL-E                         Move cursor to the end of the line.
CTRL-F                         Move cursor forward one character; same as the right arrow key.
CTRL-B                         Move cursor backward one character; same as the left arrow key.

CTRL-L                         Clear the screen and move the cursor to the top left corner. The clear command does the same thing.

 

 

 

Modifying Text


Cutting and Pasting (Killing and Yanking) Text

 

Key                                                          Action

Ctrl+_ Undo                    what was just typed in(undo).
CTRL-D                          Delete the character at the cursor location.

ALT-U                           Convert the characters from the cursor location to the end of the word to uppercase.

CTRL-K                          Kill text from the cursor location to the end of line.  (删除光标所在之后的文字)
CTRL-U                          Kill text from the cursor location to the beginning of the line. (删除光标所在之前的文字)
CTRL-Y                          Yank text from the kill-ring and insert it at the cursor location. (从光标处插入之前复制或者是剪切的数据)

 

 

 

Completion


use TAB key(使用TAB键)可以直接进行补全

 

 

 

Using History


Key                                                                              Action
CTRL-P                                      Move to the previous history entry. Same action as the up arrow.
CTRL-N                                      Move to the next history entry. Same action as the down arrow.

CTRL-O                                     Execute the current item in the history list and advance to the next one. This is handy if you are trying to re-execute a sequence of commands in the history list.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值