Linux bash keyboard shortcut(Linux最常用的的命令行快捷键)


Ctrl + AGo to the beginning of the line you are currently typing on(定位行首)
Ctrl + EGo to the end of the line you are currently typing on(定位行尾)
Ctrl + L              Clears the Screen, similar to the clear command(清屏)
Ctrl + UClears the line before the cursor position. If you are at the end of the line, clears the entire line.(清楚当前光标之前的所有内容)
Ctrl + HSame as backspace(相当于退格键)
Ctrl + RLet’s you search through previously used commands(搜索之前用过的命令
Ctrl + CKill whatever you are running(终止当前进程)
Ctrl + DExit the current shell(退出当前命令行)
Ctrl + ZPuts whatever you are running into a suspended background process. fg restores it.(将当前进程转入后台运行)
Ctrl + WDelete the word before the cursor(删除光标前的单词)
Ctrl + KClear the line after the cursor(删除光标后的单词)
Ctrl + TSwap the last two characters before the cursor(交换光标前的两个字符)
Alt + TSwap the last two words before the cursor(交换光标前的两个单词)
Alt + FMove cursor forward one word on the current line(向前跳过一整个单词)
Alt + BMove cursor backward one word on the current line(向后跳过一整个单词)
Tab

Auto-complete files and folder names(自动补齐文件名或者文件夹名


Emacs 快捷键

C-g quit
C-x C-x Exit
C-x C-f open / "visit" a file
C-x k kill the buffer representing a file... not deleting a file

C-f move forward one character
C-b move back
M-f move forward one word
M-b move back one word

C-d Delete a character
M-d Delete a word
C-_ Undo

C-p previous line / up
C-n next line / down
C-a move to the beginning of the a line
C-e move to the end of the line

M-< begging of the buffer
M-> end of the file
C-v page down
M-v page up
C-l center the screen 

C-x 2 split top/bottom 
C-x o other window 
C-x 3 split left right
C-x 1 remove all windows - simplify life

Search
C-s text  <--- search
C-s Text  <--- case sensitive search

C-space <--- start / toggle marking a region
C-k kill to end of line
M-w copy
C-w cut
C-y yank / paste

M-x query-replace
M-%
M-$ spell check word
Hello Worlds
M-x flyspell-mode
Hello Worlds
 


其他:

杀死一个进程使用 Kill -9 PID

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值