www.LinuxHowtos.org
Using bash history
If you have ever typed a long command and needed to repeat it, or you need to repeat a series of commands, try using history instead of re-typing. The history command allows you see (and execute) previous commands.
Type history to see the last few commands you've entered. It will show you the command and a number. To execute the command use history !number where number is the number of the command listed. (e.g. history !234).
From http://www.gentoo.org/news/en/gwn/20040719-newsletter.xml
rate this article:
current rating: average rating: 1.2 (46 votes) (1=very good 6=terrible)
Your rating:
back