惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
小众软件
小众软件
博客园 - Franky
D
Docker
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
宝玉的分享
宝玉的分享
C
Check Point Blog
B
Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
博客园 - 聂微东
博客园_首页
Engineering at Meta
Engineering at Meta

博客园 - 李现民

聚人才,戏天下,以为本 一些强大的Shell命令(转) Unity3d中BlinnPhong光照模型注解 扩展方法之二分查找 一次非典型的程序优化 各种箭头的unicode编码值 深度排序与alpha混合 SendMessage使用技巧 Unity3d基本优化策划 Destroy()方法的延时特性 如何使GameObject在超出Camera视野后自动销毁 避免在代码中直接使用delete关键字 J2ME中的基础碰撞检测算法 告别cpp&h:hpp文件编写心得(转) 平台无关性多线程库-C++ Boost Thread 编程指南(转) BitBlt()双缓冲解决图象闪烁(转) 后缀数组(转) 2006百度笔试题 百度笔试题
Bash Shortcuts(转)
李现民 · 2012-11-24 · via 博客园 - 李现民

Bash, which is the default shell in Linux contains a whole lot of key bindings which makes it really easy to use . The most commonly used shortcuts are listed below :

CTRL Key Bound

Ctrl + a - Jump to the start of the line

Ctrl + b - Move back a char 

Ctrl + c - Terminate the command 

Ctrl + d - Delete from under the cursor 

Ctrl + e - Jump to the end of the line 

Ctrl + f - Move forward a char 

Ctrl + k - Delete to EOL 

Ctrl + l - Clear the screen 

Ctrl + r - Search the history backwards 

Ctrl + R - Search the history backwards with multi occurrence 

Ctrl + u - Delete backward from cursor 

Ctrl + xx - Move between EOL and current cursor position 

Ctrl + x @ - Show possible hostname completions 

Ctrl + z - Suspend/ Stop the command 

ALT Key Bound

Alt + < - Move to the first line in the history 

Alt + > - Move to the last line in the history 

Alt + ? - Show current completion list 

Alt + * - Insert all possible completions 

Alt + / - Attempt to complete filename 

Alt + . - Yank last argument to previous command 

Alt + b - Move backward 

Alt + c - Capitalize the word 

Alt + d - Delete word 

Alt + f - Move forward 

Alt + l - Make word lowercase 

Alt + n - Search the history forwards non-incremental 

Alt + p - Search the history backwards non-incremental 

Alt + r - Recall command 

Alt + t - Move words around 

Alt + u - Make word uppercase 

Alt + backspace - Delete backward from cursor 

More Special Key bindings

Here 2T means Press TAB twice. And $ is the bash prompt.

$ 2T - Display all available commands(common) 

string 2T - Display all available commands starting with string

$ /2T - Show entire directory structure including hidden ones. 

$ 2T - Show only sub-directories inside including hidden ones.

$ *2T - Show only sub-directories inside excluding hidden ones. 

$ ~2T - Show all present users on system from "/etc/passwd" 

$ $2T - Show all sys variables 

$ @2T - Show all entries from "/etc/hosts" 

$ =2T - List output like ls or dir