DEV Community


Discussion on: 5 Handy Bash Tricks in 2 Minutes

jacobherrington profile image
Jacob Herrington (he/him) Author

That's a great trick! Thanks!

zeddotes profile image
zeddotes • Edited

You could also pipe history too! Which could allow you to grep (and more) within your history:

$ history | grep "status"

10005  git status
10008  git status
10011  git status
10014  git status
10016  git status


Thread Thread
ianturton profile image
Ian Turton

ctrl-r status will walk back up your history looking at each time the command line contained status - just hit return when you find the command you need.