---

Linux.com: CLI Magic: Bash History Expansion

“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…”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis