Linux History Command

To run the last command you used enter:

!!

You can also run a command that was much earlier in the history list. To do so, enter the following, where n is the line you wish to run:

![n]
To run the last command that used a specific string, enter:

![string]

Comments