[kwlug-disc] command prompt history

Adam Glauser adamglauser at gmail.com
Mon Mar 15 16:16:47 EDT 2010

Insurance Squared Inc. wrote:
> What's the command to browse your command line history, based on the 
> first letter of the command?
> i.e. I'm at a command prompt and want to get the last 'mysql' command I 
> typed in.
> I know it's possible, I don't even know what the heck I'd google :).

Probably not the "right" way, but I think `history | grep "^mysql.*"` 
would work.

More information about the kwlug-disc mailing list