Bash Readline Keyboard shortcuts
By Yunt. Sunday, 25. June 2006, 14:14:02
全文在这里:http://xs.mw/wiki/index.php/Bash_Readline_Shortcuts
这些东西都挺简单的,试着做一下就知道是干什么的.
| SHORTCUT | DESCRIPTION |
| Shift + PgUp | Scroll one page up in terminal history |
| Shift + PgDn | Scroll one page down in terminal history |
| ! | Repeat last command |
| !x | Repeat command x (replace with numeric) from bash history |
| !$ | Replaced with last command line argument |
| Tab Tab | All available commands(common) |
| (string) Tab Tab | All available commands starting with (string) |
| / Tab Tab | Entire directory structure including Hidden one |
| Tab Tab | Only Sub Dirs inside including Hidden one |
| * Tab Tab | Only Sub Dirs inside without Hidden one |
| ~ Tab Tab | All Present Users on system from "/etc/passwd" |
| $ Tab Tab | All Sys variables |
| @ Tab Tab | Entries from "/etc/hosts" |
| = Tab Tab | Output like ls or dir |
| Ctrl + a | Jump to the start of the line |
| Ctrl + b | Move back a char |
| Ctrl + c | Terminate the command |
| Ctrl + d | Log out |
| Ctrl + e | Jump to the end of the line |
| Ctrl + f | Move forward a char |
| Ctrl + k | Cut 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 + w | Delete token left of cursor |
| Ctrl + xx | Move between EOL and current cursor position |
| Ctrl + x @ | Show possible hostname completions |
| Ctrl + y | Paste to EOL |
| Ctrl + z | Suspend/ Stop the command |
| 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 + back-space | Delete word left of cursor |









mysurface # 8. July 2006, 06:23