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
history
command shows numbers before the actual commands so try using thisawk
command instead:Or
You can also just search
~/.bash_history
but the contents of this file may not always reflect the current history: