bash history
Brian Fahrlander
brian at fahrlander.net
Thu Mar 1 23:04:25 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Frost wrote:
> 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)
(Not the OP) Thanks! I've wondered where that was, for the longest
time. :)
- --
------------------------------------------------------------------------
Brian Fahrländer Christian, Conservative, and Technomad
Evansville, IN http://Fahrlander.net/brian
ICQ: 5119262 AOL/Yahoo/GoogleTalk: WheelDweller
------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF51v56PLtRzZbdhYRAnv3AJ4sP0TtmJe7r2mIMV/5l+D5BPAzmgCfUYMb
xet+59DTytD8fj/cSG4yUMk=
=Y1O6
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list