当前位置:网站首页>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 .
边栏推荐
猜你喜欢

unity场景跳转脚本

Excel VBA: summarize calculation output results by date (SUMIF)

Excel VBA:实现自动下拉填充公式至最后一行

测试必备工具之Fiddler,你真的了解吗?

Go-Excelize API源码阅读(六)—— DeleteSheet(sheet string)

SAP报表开发步骤

Application of remote sensing, GIS and GPS technology in hydrology, meteorology, disasters, ecology, environment and health

Security permission management details

Redis solves the problem of oversold inventory

ALV报表流程图解
随机推荐
npm操作指令
C语言力扣第41题之缺失的第一个正数。两种方法,预处理快排与原地哈希
地球系统模式(CESM)实践技术
JVM Lecture 5: how to deal with peak push of vertical and horizontal data
Excel vba: saving multiple worksheets as new files
Shell流程控制(重点)、if 判断、case 语句、let用法、for 循环中有for (( 初始值;循环控制条件;变量变化 ))和for 变量 in 值 1 值 2 值 3… 、while 循环
面试之请详细说下synchronized的实现原理以及相关的锁
关于负数表示的数值为什么比整数大1?
ALV程序收集
第二讲 初识SLAM
The pit of history can only be filled up as far as possible
公交站间的距离 : 简单模拟题
Map making of environmental impact assessment based on remote sensing interpretation and GIS technology
security权限管理详解
JVM第六讲:线上环境 FGC 频繁,如何解决?
Install nccl \ mpirun \ horovod \ NVIDIA tensorflow (3090ti)
ThreadLocal transfer between parent and child threads in asynchronous
CLM land surface process model
no networks found in /etc/cni/net.d
[pytorch] install torch 1.8.1 and check whether torch version and GPU are available