Linux.com: CLI Magic: Bash History Expansion
Jul 19, 2005, 05:30 (0 Talkback[s])
(Other stories by Shashank Sharma)
"The Bourne-Again SHell (bash) has a major user base and the
fact that it has incorporated some useful features from the Korn
shell (ksh) and C shell (csh) might be one of the reasons. History
expansion, for example, was first implemented in csh.
"Entering the history command without any switches displays the
history list with line numbers. If that's too much information,
enter history N where N is the number of previously executed
commands you want displayed..."