Linux.com

Home Learn Linux Linux Tutorials Tech Tip: Use History Expansion To Save Time and Typing

Tech Tip: Use History Expansion To Save Time and Typing

 

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

 

Comments

Subscribe to Comments Feed

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board