2013-02-20 Bash Shortcuts
CTRL Key Bound
1
Ctrl + a - Jump to the start of the line
2
Ctrl + b - Move back a char
3
Ctrl + c - Terminate the command
4
Ctrl + d - Delete from under the cursor
5
Ctrl + e - Jump to the end of the line
6
Ctrl + f - Move forward a char
7
Ctrl + k - Delete to EOL
8
Ctrl + l - Clear the screen
9
Ctrl + r - Search the history backwards
10
Ctrl + R - Search the history backwards with multi occurrence
11
Ctrl + u - Delete backward from cursor
12
Ctrl + xx - Move between EOL and current cursor position
13
Ctrl + x @ - Show possible hostname completions
14
Ctrl + z - Suspend/ Stop the command
Copied!
ALT Key Bound
1
Alt + < - Move to the first line in the history
2
Alt + > - Move to the last line in the history
3
Alt + ? - Show current completion list
4
Alt + * - Insert all possible completions
5
Alt + / - Attempt to complete filename
6
Alt + . - Yank last argument to previous command
7
Alt + b - Move backward
8
Alt + c - Capitalize the word
9
Alt + d - Delete word
10
Alt + f - Move forward
11
Alt + l - Make word lowercase
12
Alt + n - Search the history forwards non-incremental
13
Alt + p - Search the history backwards non-incremental
14
Alt + r - Recall command
15
Alt + t - Move words around
16
Alt + u - Make word uppercase
17
Alt + backspace - Delete backward from cursor
Copied!
More Special Key bindings
Here 2T means Press TAB twice. And $ is the bash prompt.
1
$ 2T - Display all available commands(common)
2
$ string 2T - Display all available commands starting with string.
3
$ /2T - Show entire directory structure including hidden ones.
4
$ 2T - Show only sub-directories inside including hidden ones.
5
$ *2T - Show only sub-directories inside excluding hidden ones.
6
$ ~2T - Show all present users on system from "/etc/passwd"
7
$ $2T - Show all sys variables
8
$ @2T - Show all entries from "/etc/hosts"
9
$ =2T - List output like ls or dir
Copied!
最近更新 1yr ago
复制链接