当前位置:网站首页>Bash basic functions alias and shortcut keys
Bash basic functions alias and shortcut keys
2022-07-22 21:26:00 【Ten at eight】
1、 Command alias
#alias Alias =‘ The original order ’ -------- Set command alias
#alias ------------ Query command alias
The order in which the command is executed
The first sequence executes a command executed with an absolute path or a relative path
Second order execution alias .
Third order execution Bash The internal order of
The fourth order is executed according to $PATH The first command found in the directory lookup order defined by the environment variable .
To delete an alias #unalias Alias
2、bash Common shortcut key
ctrl+A -- Move the cursor to the beginning of the command line , If the command we enter is too long , When you want to move the cursor to the beginning of the command line, use .
ctrl+E -- Move the cursor to the end of the command line
ctrl+C -- Forcibly terminate the current command
ctrl+L -- Clear the screen
ctrl+U -- Delete or cut the command before the cursor , If you enter a long command , You don't need to use the backspace key to delete characters one by one , It's more convenient to use this shortcut .
ctrl+K -- Delete or cut the content after the cursor
ctrl+Y -- Paste ctrl+U or ctrl+K Cut content
ctrl+R -- Search in historical orders , Press down ctrl+R after , The search interface will appear , Just enter the search content , It's going to search through history commands .
ctrl+D --- Exit the current terminal .
ctrl+Z --- Pause , And put it backstage .
ctrl+S ---- Pause screen output
ctrl+Q ---- Restore screen output
边栏推荐
- MySQL connection query using Convert in on causes the number of scan lines to increase
- 解决TraceCompass网站打不开和Stackoverflow显示不全的问题
- 人类群星网站收集计划--Michael Kerrisk
- Use vis network to locate the circular toolbar according to the node coordinates
- 使用vis-network根据节点坐标定位环形工具栏
- Leetcode notes (I) backtracking
- [lttng learning journey] - environment construction
- 5. Network and security
- 第七章:使用jwt token的方式来进行登录
- RPM包管理—YUM在线管理-IP地址配置和网络YUM源
猜你喜欢
随机推荐
[LTTng学习之旅]------开始之前
Juc-7.3-thread collaboration cyclicbarrier
8. Memory and disk management
[pytorch deep learning practice] learning notes section III gradient decline
[LTTng学习之旅]------Trace控制--初阶
JUC-8.0-Future和Callable
[GXYCTF2019]BabyUpload1
RPM包管理—YUM在线管理--YUM命令
简单句(Simple sentences)-one
MVCC
Buuctf entry diary -- [nctf2019]fake XML Cookbook
Bash变量--位置参数变量
BUUCTF闯关日记--[极客大挑战 2019]HardSQL1
字符处理命令
Bash基本功能—别名与快捷键
Interview shock 67: talk about tcp/ip protocol? And the role of each layer?
LeetCode笔记(一)回溯
How to do research and development lean demand management well
第八章:自定义异常返回
使用简单的js实现圆弧布局