Ctrl-r — give your brain a break
1 min readSep 26, 2019
TL:DR Hitting Ctrl-r in your command line and start typing and you’ll see your history appear
I remember when I was first shown that pressing up and down on the command line cycled through your previous commands it blew my mind.
Ctrl-r is like a much more sophisticated way of cycling through your history.
To use it
1. Hit Ctrl-r
2. Start typing
3. To cycle through older commands containing your text hit Ctrl-r again
4. Once you've found the right command hit enter
In the below example I remember I found a way to kill something on port 3000 in one line but I can’t remember the command.
1. Hit Ctrl-r
2. Type 3000
3. Hit Ctrl-r until I find the command I want
4. Hit Enter to run the command
I use Ctrl-r constantly throughout my day and really saves my brain from having to remember everything I’ve ever typed!