bash history

Mitch Contla mcontla at
Thu Mar 1 22:41:34 UTC 2007

On 3/1/07, John Dangler <jdangler at> wrote:
> i used to use h or history for shell history..
> I'm looking for the command that will show the last tar command I ran...
> !tar apparently tries to run every tar command I entered...
$ <ctrl-r> tar
Shows last command containing substring 'tar'. Successive <ctrl-r>
should cycle through reverse chronologically.

You might also try:
$ fc -l tar

Good luck!

More information about the ubuntu-users mailing list