#history
ctrl+R in steps: 1. Press Ctrl+R. 2 👍 Type part of a previous command. 3 🤦 Ctrl+R again for older matches. 4. Enter to run, or arrow key to edit first. 5. Ctrl+G (bash) or Ctrl+C to cancel. tip: bash keeps a limited history by default, set HISTSIZE and…
Today i learned i can keep a command out of bash history by starting it with a space, as long as HISTCONTROL includes ignorespace or ignoreboth. Ubuntu's default .bashrc uses ignoreboth, so it probably already works for many people. also, history grep was…