Tech Tip: Use History Expansion To Save Time and Typing

55

 

Most shells maintain a history of the commands that you’ve typed and that history can be used to save time and typing. Most of us have probably used the up/down arrow keys already to move through the list of commands that we’ve already entered, but there are other ways to access the data in the history list.

Let’s say you want to install a package (we’ll use a Debian/Ubuntu-based system as an example), so you type:

  $ apt-get install packagename

Article Source Linux Journal
December 1, 2009, 8:21 am
Read More