Keyboard Shortcuts for Bash

今天在网上闲逛,看到篇不错的文章, Keyboard Shortcuts for Bash 我摘录过来

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 + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names

发现我朋友 linuxcoffee 已经写了一篇了,所以就直接帖过来了. 见 Shell Tips - Hot key in Bash (Bash中的快捷键 - Cool!)

Ctrl + A : 光标移到行首
Ctrl + E : 光标移到行尾
Ctrl + L : 清屏
Ctrl + U : 清除光标前至行首间的所有内容
Ctrl + H : 同 backspace 键相同
Ctrl + R : 搜索之前打过的命令
Ctrl + C : 杀死当前进程
Ctrl + D : 退出当前 Shell
Ctrl + Z : 把当前进程转到后台运行,使用’ fg ‘命令恢复
Ctrl + W : 移除光标前的一个单词
Ctrl + K : 清除光标后至行尾的内容
Ctrl + T : 交换光标位置前的两个字符
Esc + T : 交换光标位置前的两个单词
Alt + F : 在当前行把光标向前移一个单词
Alt + B : 在当前行把光标向后移一个单词
Tab : 自动补完命令

加一些补充
(more…)

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值