Note Bash

techbash

Keyboard Shortcuts

  • Closing a frozen SSH session: Enter - ~ - .

Strict Mode

# Make sure we fail on errors
set -euo pipefail
  • Exit on non-zero exit codes
  • Exit on undefined variable access
  • Use any failed exit code as pipeline exit code

Source: Unofficial Bash Strict Mode