当前位置:网站首页>Bash shortcut key to improve command line efficiency [Full Version]
Bash shortcut key to improve command line efficiency [Full Version]
2022-07-26 05:13:00 【wild _ wolf】
To live in Bash shell in , Memorize the following shortcuts , Will greatly improve the efficiency of your command line operation .
Edit command
Ctrl + a : Move to the beginning of the command line
Ctrl + e : Move to the end of the command line
Ctrl + f : Move forward by character ( To the right )
Ctrl + b : Press character back ( To the left )
Alt + f : Move forward by word ( To the right )
Alt + b : Press the word back ( To the left )
Ctrl + xx: Move between the beginning of the command line and the cursor
Ctrl + u : Delete from the cursor to the beginning of the command line
Ctrl + k : Delete from the cursor to the end of the command line
Ctrl + w : Delete from cursor to prefix
Alt + d : Delete from cursor to end
Ctrl + d : Delete the character at the cursor
Ctrl + h : Delete the character before the cursor
Ctrl + y : Paste after cursor
Alt + c : Change the first capitalized word from the cursor
Alt + u : Change from cursor to all uppercase words
Alt + l : Change from cursor to all lowercase words
Ctrl + t : Exchange the cursor and the preceding characters
Alt + t : Swap the words at the cursor and before
Alt + Backspace: And Ctrl + w identical similar , There are some differences in separators
Execute the order again
Ctrl + r: Reverse search command history
Ctrl + g: Exit from history search mode
Ctrl + p: The last order in history
Ctrl + n: The next order in history
Alt + .: Use the last argument of the previous command
Control command
Ctrl + l: Clear the screen
Ctrl + o: Execute the current command , And choose the last command
Ctrl + s: Block screen output
Ctrl + q: Allow screen output
Ctrl + c: Termination order
Ctrl + z: Suspend command
Bang (!) command

Friendship tips :
Most of the above Bash Shortcut keys are only available when emacs In edit mode , If you will Bash Configure to vi Edit mode , That will follow vi Button binding .Bash The default is emacs Edit mode . If your Bash be not in emacs Edit mode , It can be done by set -o emacs Set up .
^S、 ^Q、 ^C、 ^Z It's handled by the terminal device , You can use stty Command settings .
边栏推荐
- JVM Lecture 6: how to solve the frequent FGC in online environment?
- Earth system model (cesm) practical technology
- 提高shuffle操作中的reduce并行度
- 分布式ID的常用解决方案-一把拿下
- MySQL八股知识点:从入门到删库
- How many holes have you stepped on in BigDecimal?
- Security permission management details
- AQS唤醒线程的时候为什么从后向前遍历,我懂了
- 基于遥感解译与GIS技术环境影响评价图件制作
- ABAP语法学习(ALV)
猜你喜欢

五个维度着手MySQL的优化,我和面试官都聊嗨了

阿里三面:MQ 消息丢失、重复、积压问题,如何解决?

域名解析过程全分析,就着文字理解更佳

一次线上事故,我顿悟了异步的精髓

Teach you how to use code to realize SSO single sign on

nacos注册中心
![[pytorch] install torch 1.8.1 and check whether torch version and GPU are available](/img/97/078c72729a29675939a84895b5ab86.png)
[pytorch] install torch 1.8.1 and check whether torch version and GPU are available

security权限管理详解

Redis solves the problem of oversold inventory

kubernetes install completed
随机推荐
List converted to tree real use of the project
Why is the value represented by a negative number greater than an integer by 1?
ALV入门
Your understanding of the "happen before principle" may be wrong?
uniapp小程序框架-一套代码,多段覆盖
嵌入式分享合集20
ALV报表流程图解
Embedded sharing collection 21
【洛谷】P3919 【模板】可持久化线段树1(可持久化数组)
Teach you how to use code to realize SSO single sign on
Seata两阶段提交AT详解
Annotation @autowired how to assemble automatically
When AQS wakes up the thread, I understand why it traverses from the back to the front
A material of machine learning
Redis过期删除策略和内存淘汰策略
Leetcode linked list problem - 203. remove the linked list elements (learn the linked list by one question and one article)
mysql函数汇总之日期和时间函数
Alibaba three sides: how to solve the problems of MQ message loss, duplication and backlog?
【洛谷】P1383 高级打字机
【pytorch】torch1.8.1安装、查看torch版本、GPU是否可用