Linux Terminal Tricks
Many tips and tricks for efficient usage of terminals.
Bash/Zsh Cursor Control¶
Shortcut | Description |
---|---|
Ctrl+Left | Previous word |
Ctrl+Right | Next word |
Home | Start of line |
End | End of line |
Ctrl+U | Clear current line |
Ctrl+L | Clear screen |
Ctrl+R | Search history |
Terminator Shortcuts¶
Note
This assumes you're using terminator
as configured in this repo's ansible role an ansible role that I wrote and haven't published, so... your mileage may vary
Shortcut | Description |
---|---|
Win+Right | Split terminal right |
Win+Down | Split terminal down |
Alt+Down | Select down |
Alt+Up | Select up |
Alt+Left | Select left |
Alt+Right | Select right |
Ctrl+Shift+T | Create tab |
Ctrl+Page Down | Next tab |
Ctrl+Page Up | Previous tab |
Ctrl+Alt+R | Rename tab |
Ctrl+Alt+X | Rename window |
Ctrl+Shift+X | Toggle terminal zoom (make single pane takeup full window temporarily) |
Ctrl+Shift+[ | Broadcast key presses to all shells in tab |
Ctrl+Shift+] | Stop broadcasting keys to all shells |
Example Layout¶
- Create second tab (Ctrl+Shift+T)
- Name tab "Recon" (Ctrl+Alt+R)
- Split in half to right (Win+Right)
- Split right panel in half down (Win+Down)
If you need to ssh into a machine (like a kali VM) and cd to a directory on multiple windows in the frame, you can use Ctrl+Shift+[
Terminator Plugins¶
Terminator has multiple plugins that can be enabled with Right Click > Preferences > Plugins
Some useful plugins are listed below
Activity Watch¶
Right Click > Watch for Activity and when the terminal has activity it will show a desktop notification
Logger¶
Right Click > Logger will prompt for a location to save a log file, once you stop logging it will save
Last update: 2021-09-01