Terminal Shortcuts
Some shortcuts used in the terminal are shown below.
Keystroke | Action |
---|---|
CTRL-B | Move the cursor left |
CTRL-F | Move the cursor right |
CTRL-P | View the previous command (or move the cursor up) |
CTRL-N | View the next command (or move the cursor down) |
CTRL-A | Move the cursor to the beginning of the line |
CTRL-E | Move the cursor to the end of the line |
CTRL-W | Erase the preceding word |
CTRL-U | Erase from cursor to beginning of line |
CTRL-K | Erase from cursor to end of line |
CTRL-Y | Paste erased text (for example, from CTRL-U) |
ALT-B | Move the cursor one word to the left |
ALT-F | Move the cursor one word to the right |
ALT-T | Replace the word with the previous word |
CTRL-T | Replace the character with the previous character |
ALT-U | Make the word uppercase |
ALT-L | Makes the word lowercase |
CTRL-S | Pause output |
CTRL-Q | Resume paused output |
CTRL-Z | Suspend and stop |
fg (foreground) | Brings the background process to the foreground |