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.:

history

!1210

Screen Shot 2015-10-12 at 1.12.33 PM

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...