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…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...