bash history
Tim Frost
timfrost at xtra.co.nz
Thu Mar 1 22:24:40 UTC 2007
On Thu, 2007-03-01 at 17:11 -0500, John Dangler 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...
! tells the shell to RUN the LAST command that matches.
To search, use CTRL-R, then type what you are searching for. This will
find the most recent matching entry. To search for previous
occurrences, just press CTRL-R to scroll through the history.
You can then edit the command, before running it (hit ENTER to run the
command)
Tim
More information about the ubuntu-users
mailing list