- Reverse search of command history:
Ctrl+R
- Execure previous command:
!! (may use in combination with sudo: sudo !!)
- Trimming of line:
Ctrl+K (to the end) | Ctrl+U (to the start) | Ctrl+Y (yeld cuted part)
- use less -F instead tail -f
Shift+F (Follow mode) | Shift+C (navigation mode)
- Go to tmp editor for commands
Ctrl+x+e
- Argument of command
!:[argument-number] => !:2-3
The last argument of previous command
Alt+. | !$
- Suspend current terminal process
Ctrlz+Z | fg (to restore)
- Cleanup terminal
Ctrl+L (stay with history above) | restore (completelly clean up terminal sessoin)
- Remove word
Ctrl+w: removes last word from cursor
Alt+d: removes next word from cursor