Bash Keyboard Shortcuts
In the past I have spent so much time using the mouse to navigate through directories and have largely avoided using the bash because I never really knew keyboard shortcuts that are used in bash. I have found myself to be much more productive when I use bash commands rather than navigating with my mouse. Here are a list of bash keyboard shortcuts that I find very useful. Some I use more than others, but this list is a good reference of the most common shortucts, taken from Ubuntu Pocket Guide and Reference . Even though they are listed as Ubuntu shortcuts, they are essentially the same for most operating systems based on the Linux kernel.
| Key Combination | Description |
|---|---|
| Up/down cursor key | Scroll through command history |
| Ctrl+left/right cursor key | Move cursor from word to word |
| Tab | Autocomplete command or filename/path |
| Ctrl+A | Move to beginning of line |
| Ctrl+E | Move to end of line |
| Ctrl+W/Alt+Backspace | Delete word behind cursor |
| Alt+D | Delete word in front of cursor |
| Ctrl+U | Delete to beginning of line |
| Ctrl+K | Delete to end of line |
| Ctrl+Y | Restore text you’ve deleted |
| Ctrl+L | Clear screen (actually, this simply moves the prompt to the top of the screen; existing commands are still visible if the terminal window is scrolled) |
| Ctrl+C | Quit current program |
| Ctrl+Z | Switch current program to background |
| Ctrl+R | Search through command history |
| Ctrl+D | Logout (technically, terminate input) |
| Ctrl+T | Swap the two characters behind cursor |
Entry filed under: Linux How-to's. Tags: bash, console, fedora, keyboard, keyboard shortcuts, linux, shortcuts, terminal, ubuntu.
Trackback this post