How do I repeat the last bash command with some text pre-pended to the front of it.
So if the previous command was:
$ ls /somedir
I want to run the following command utilizing the bash history to prevent retyping / copy & pasting:
$ sudo /somedir
Bonus, how about appending?