shell cheatsheet

Save half-typed commands

  1. ctrl + u - cut whole line, ctrl + y - paste
  2. ctrl + k - cut from cursor to end of line, ctrl + y - paste
  3. ctrl + q - cut whole line, auto-paste after executing a command

Source: Bash/Zsh: save half-typed commands - sgeb.io

Disconnect from SSH session

Useful when SSH session hangs.

<enter> ~ .