Files
Bash-learning/Linux Keyboard Shortcuts.md
2025-06-29 20:18:01 +03:00

55 lines
2.3 KiB
Markdown

---
title: Linux Keyboard Shortcuts
created: '2025-06-29T16:45:05.400Z'
modified: '2025-06-29T16:45:10.372Z'
---
## Linux Keyboard Shortcuts
| **Key** | **Function** |
| :--: | :-- |
| **Cursor Movement** |
| Ctrl+B | Move cursor backward one character position |
| Ctrl+F | Move cursor forward one character position |
| Alt+F | Move cursor one word forward in line |
| Alt+B | Move cursor one word backward in line |
| Ctrl+A | Move cursor to beginning of text in line |
| Ctrl+E | Move cursor to end of text in line |
| **Text Editing** |
| Ctrl+D | Erase character forward from cursor left to right |
| Ctrl+H | Erase character backward from cursor right to left |
| Alt+D | Erase the next word from cursor left to right |
| Ctrl+W | Erase backwards to first non-alphanumeric character or empty space |
| Ctrl+U | Erase a line of input from cursor right to left |
| Ctrl+K | Erase a line of input from cursor left to right |
| Alt+R | Revert any changes to a previously executed command that's being edited |
| Alt+. | Fetch and paste the last word at end of a command from previous commands |
| Ctrl+T | Reverse the position of the character the cursor is on with the previous character |
| Alt+T | Reverse the position of the word the cursor is in with the previous word |
| Alt+U | Capitalize every character from cursor left to right to the end of one word |
| Alt+L | Uncapitalize every character from cursor left to right to the end of one word |
| Ctrl+Y | Paste (yank) text cut by Ctrl+U, Ctrl+K, or Ctrl+W |
| Ctrl+_ | Undo last change |
| **Command History** |
| Ctrl+P | Fetch previous command from history list |
| Ctrl+N | Fetch next command from history list |
| Ctrl+R | Reverse search commands from history list |
| **Process Control** |
| Ctrl+C | Break/Terminate a foreground job |
| Ctrl+Z | Suspend a foreground job |
| Ctrl+S | Suspend output to screen |
| Ctrl+Q | Resume output to screen |
| **Terminal Control** |
| Ctrl+L | Clear screen contents (command-line needs to be empty) |
| Ctrl+D | Log out from a shell (similar to exit) or send EOF |
| Ctrl+O | Accept the current line for execution and fetch the next command |
| Ctrl+X (twice) | Toggle cursor between current position and beginning of the line |
| **Text Editing (Terminal)** |
| Ctrl+Shift+C | Copy |
| Ctrl+Shift+V | Paste |
| Shift+Insert | Paste (alternative) |