CLI Magic: Using command history in the bash shell (Linux.com)
Posted Jul 4, 2006 1:37 UTC (Tue) by
xoddam (subscriber, #2322)
Parent article:
CLI Magic: Using command history in the bash shell (Linux.com)
I learned a bit about ! history references when I used to use csh in
the days before GNU, but upgrading to tcsh gave me cursor keys. I did
use !?blah? sporadically on bash for a while until I discovered the
incremental search feature: using the same keys as emacs (ctl-r for
search backwards and ctl-s for search forwards), you can interactively
find substrings in your history.
! and such features are nice to know about for historical reasons (and
to prove you're a l33t h4x0r), but they're about as useful as ex. AFAIK
there are no terminals left that can't rewrite the prompt line; let me
know if anyone's stuck with a Teletype® :-)
(
Log in to post comments)