Run a command from your bash history

For years I have been…

Login

Blog History

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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.