终端快捷键

 MOVE :

ctrl B - F 前后移动一位

alt b-f 前后移动一单词

ctrl A - E 移到开头和最后



EDIT:

ctrl H-D :前后删除一位

ctrl U-K:删除 前后所有

ctrl W: alt d 删除前后一个单词


T: 字母后拉


P-N:前后一条指令

TAB: 指令补全

L:清屏

R: 搜索

Y: 粘贴


END:

I M O Q

无用:

 S V X

1. 移动光标快捷键
ctrl+f向前移动一个字符
ctrl+b向后移动一个字符
alt+f向前移动一个单词
alt+b向后移动一个单词
ctrl+a移动到当前行首
ctrl+e移动到当前行尾
ctrl+l清屏,并在屏幕最上面开始一个新行

2. 编辑命令行快捷键
ctrl+d删除当前的字符
ctrl+t交换当前字符和前一个字符的位置
alt+t交换当前单词和前一个单词的位置
alt+u把当前单词变成大写
alt+l把当前单词变成小写
alt+c把当前单词变成首字母大写的单词
ctrl+v添加一个特殊字符,例如,要添加一个制表符,按ctrl+v+tab

3. 剪切、粘贴快捷键
ctrl+k剪切文本直到行的末尾
ctrl+u剪切文本直到行的起始
ctrl+w剪切光标前的单词
alt+d剪切光标后的单词
ctrl+y粘贴最近剪切的文本



# Ctrl A - Go to the beginning of the line you are currently typing on
# Ctrl E - Go to the end of the line you are currently typing on # Ctrl xx - Move between EOL and current cursor position
光标在当前行的开头和结尾切换

# Ctrl L - Clears the Screen, similar to the clear command
清屏,类似于 clear 命令

---------------------------------------
# Ctrl U - Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
清除光标之前的所有内容

# Ctrl K - Clear the line after the cursor ---------------------------------------

# Ctrl H - Same as backspace
退格键 backspace

# Alt F - Move cursor forward one word on the current line # Alt B - Move cursor backward one word on the current line ---------------------------------------
在图形界面下使用终端时按 Alt + F ,会打开当前窗口的文件下拉菜单。这样终端快捷键就不起作用了。可以通过更改终端配置来解决冲突。方法:点击终端窗口顶部菜单中的 Edit ,在下拉菜单中点击 Keyboard Shortcuts,然后在打开到窗口中,将Enable menu access keys 这项取消勾选就可以了。
这样就可以用shell自身的shortcuts了。

# Ctrl R - Let’s you search through previously used commands
从命令历史中找

# Ctrl C - Kill whatever you are running
终止命令

# Ctrl D - Exit the current shell
退出 shell

# Ctrl Z - Puts whatever you are running into a suspended background process. fg      restores it.
这个指你想中断一下当前执行的程序,但又不想杀死它,可以把它放到后台,想继续执行时,用fg可以唤醒它。

---------------------------------------
# Ctrl W - Delete the word before the cursor
清除光标之前的一个词,一般是以空格格开,不会删一行。

# Alt D - Delete word after the cursor ---------------------------------------------

# Ctrl T - Swap the last two characters before the cursor
交换光标前的最后两个字符

# Alt T - Swap the last two words before the cursor
交换光标前的最后两个单词

# Tab - Auto-complete files and folder names
自动补全

# Ctrl Y - to paste it (as in delete and copy) all text in front of the cursor
粘贴(刚才 ctrl w 或者 ctrl k 的内容)

# Esc . (or Esc Underscore) - Insert Last Argument 比如我 运行 $ cd /
那么我执行“ Esc . ”, 就会插入 "/ " 这个参数

-------------------------------------
# Ctrl B - Move back a character
# Ctrl F - Move forward a character
将光标向前|后移动一个字母的距离,不改变任何东西。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值