[TriLUG] history

Phillip Rhodes mindcrime at cpphacker.co.uk
Mon Feb 23 12:44:26 EST 2004


Joseph Tate wrote:

> 
> !100 will execute item 100 in your command history.  I generally do a 
> history | grep something, and then !thenumber

You can also do !string
where string is the beginning of a previously
entered command.  This will execute the last command
starting with that string.

Example:

# ssh someuser at somehost.com

later

# !ssh

will execute the most recent ssh command in history.

TTYL,

Phillip Rhodes

-- 
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives 
that enough is enough.
It's time to put "... from my cold, dead hands" back where it belongs.

FREE AMERICA
Vote Libertarian
www.lp.org




More information about the TriLUG mailing list