Just a question to improve my bash skills. I always do this:
bash
$ history | grep some_long_command ... ... 123 some_long_command1......... 124 some_l
You can also put
shopt -s histverify
in your .bash_profile, which causes any history expansion to appear on your command line without running it, allowing you to edit before doing so.
.bash_profile