Run a command from your bash history

Written by James McDonald

October 12, 2015

For years I have been typing history and then copying and pasting the result to the command prompt to rerun a command.

But you can simply type history, make a note of the number and then type !xxxx where xxx is the number of the command. e.g.:



Screen Shot 2015-10-12 at 1.12.33 PM


Submit a Comment

Your email address will not be published.

You May Also Like…

List your VSCode Extensions

Ever wondered what extensions you have installed and want to keep a list? This actually is a good way to audit your...