Technotes

Technotes for future me

Bash CLI

Keyboard shortcuts

ShortcutTask
Ctrl-OExecute current line from history, on return gives next line
Ctrl-UDelete from cursor to beginning of line
Ctrl-AGo to beginning of line
Ctrl-EGo to end of line
Ctrl-FGo to next word
Ctrl-BGo to previous word

Bang!

Command
!!Previous command
!$Last argument of previous command
!*All arguments of previous command
ShortcutTask
Ctrl-OExecute current line from history, on return gives next line
Ctrl-UDelete from cursor to beginning of line
Ctrl-AGo to beginning of line
Last updated on 31 Jan 2021
Published on 28 Mar 2020
Edit on GitHub