I tried this but it finds nothing:
history | grep "^git"
This finds too many lines:
history | grep "git"
I tried this but it finds nothing:
history | grep "^git"
This finds too many lines:
history | grep "git"
Copyright © 2021 Jogjafile Inc.
The
historycommand shows numbers before the actual commands so try using thisawkcommand instead:Or
You can also just search
~/.bash_historybut the contents of this file may not always reflect the current history: