#readwise
# Linux Fundamentals - Shortcuts

## Metadata
- Author: [[Hack The Box]]
- Full Title: Linux Fundamentals - Shortcuts
- URL: https://academy.hackthebox.com/module/18/section/82
## Summary
The text discusses various keyboard shortcuts to improve efficiency in Linux. These shortcuts help reduce typing and minimize mouse usage in the terminal. Examples include auto-completing commands with [TAB] and moving the cursor with [CTRL] shortcuts. Additional features include clearing the terminal and searching command history.
## Highlights
Cursor Movement
`[CTRL] + A` - Move the cursor to the `beginning` of the current line.
`[CTRL] + E` - Move the cursor to the `end` of the current line.
`[CTRL] + [←]` / `[→]` - Jump at the beginning of the current/previous word.
`[ALT] + B` / `F` - Jump backward/forward one word.
* * *
Erase The Current Line
`[CTRL] + U` - Erase everything from the current position of the cursor to the `beginning` of the line.
`[Ctrl] + K` - Erase everything from the current position of the cursor to the `end` of the line.
`[Ctrl] + W` - Erase the word preceding the cursor position.
* * *
Paste Erased Contents
`[Ctrl] + Y` - Pastes the erased text or word.
* * *
Ends Task
`[CTRL] + C` - Ends the current task/process by sending the `SIGINT` signal. For example, this can be a scan that is running by a tool. If we are watching the scan, we can stop it / kill this process by using this shortcut. While not configured and developed by the tool we are using. The process will be killed without asking us for confirmation.
* * *
End-of-File (EOF)
`[CTRL] + D` - Close `STDIN` pipe that is also known as End-of-File (EOF) or End-of-Transmission.
* * *
Clear Terminal
`[CTRL] + L` - Clears the terminal. An alternative to this shortcut is the `clear` command you can type to clear our terminal.
* * *
Background a Process
`[CTRL] + Z` - Suspend the current process by sending the `SIGTSTP` signal.
* * *
Search Through Command History
`[CTRL] + R` - Search through command history for commands we typed previously that match our search patterns. ([View Highlight](https://read.readwise.io/read/01jnb11cmgms0kbb6mh4t0bj97))
---