all posts (default)
Weblog (or Blog)
Wednesday, May 15, 2019
These shortcuts apply to macOS Terminal. They may work in other bash shells, but I don't know.
^ = control key
^A - move cursor to beginning of line
^E - move cursor to end of line
^U - delete from cursor to beginning of line
^K - delete from cursor to end of line
^R - search command history. Press again to find next.
cd - - toggle between paths
!! - paste last command
!<command name> - repeat last command using <command name>
!$ - paste arguments from last command
^<text>^<replacement> - replace <text> in last command