20 Terminal Keyboard Shortcuts

Опубликовано: 02 Ноябрь 2024
на канале: Engineering Academy Online
4
0

Terminal Keyboard Shortcuts Description

Keyboard shortcuts in terminal emulators greatly enhance productivity by allowing users to execute commands and navigate the interface quickly and efficiently. Below is a comprehensive list of common keyboard shortcuts used in terminal environments, applicable to various terminal emulators like QTerminal, GNOME Terminal, and others.

Common Terminal Keyboard Shortcuts

#### Basic Navigation

**`Ctrl + C`**: Cancel the currently running command.
**`Ctrl + D`**: Log out of the current shell session (EOF - End of File).
**`Ctrl + Z`**: Suspend the currently running process and put it in the background.
**`Ctrl + L`**: Clear the terminal screen, similar to the `clear` command.
**`Ctrl + A`**: Move the cursor to the beginning of the line.
**`Ctrl + E`**: Move the cursor to the end of the line.
**`Home` / `End`**: Jump to the beginning or end of the command line.

#### Text Manipulation

**`Ctrl + K`**: Delete from the cursor to the end of the line.
**`Ctrl + U`**: Delete from the cursor to the beginning of the line.
**`Ctrl + W`**: Delete the word before the cursor.
**`Ctrl + Y`**: Paste the last deleted text (yank).
**`Alt + B`**: Move the cursor backward one word.
**`Alt + F`**: Move the cursor forward one word.

#### Command History

**`Up Arrow`**: Scroll through previous commands (history).
**`Down Arrow`**: Scroll forward through the command history.
**`Ctrl + R`**: Search through command history (reverse search).
**`Ctrl + G`**: Exit history search mode.

#### Tab Management (for terminals with tabs)

**`Ctrl + Shift + T`**: Open a new tab.
**`Ctrl + Shift + W`**: Close the current tab.
**`Ctrl + Page Up`**: Switch to the previous tab.
**`Ctrl + Page Down`**: Switch to the next tab.

#### Miscellaneous

**`Ctrl + Shift + V`**: Paste text from the clipboard.
**`Ctrl + Shift + C`**: Copy selected text to the clipboard.
**`Ctrl + Alt + T`**: Open a new terminal window (in many environments).
**`Alt + Enter`**: Toggle full-screen mode (if supported by the terminal).

Conclusion

Mastering keyboard shortcuts in terminal emulators can significantly boost your efficiency and streamline your workflow. These shortcuts enable quick navigation, text manipulation, and effective use of command history, making the command-line experience more productive and enjoyable. Familiarizing yourself with these shortcuts will help you become more proficient in using the terminal for various tasks and system management.