Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


How to be Faster at the Linux Command Line

Feb 04, 2009, 16:33 (0 Talkback[s])

[ Thanks to victorg for this link. ]

"Use History Expansion

"Bash's command history can be referenced using the exclamation mark. For instance, typing two exclamation marks (!!) will re-execute the last command. The next example executes date twice:

"date
!!

"If you are interested in more than just the last command executed, type history to see a numbered listing of your Bash's history.

"history
39 grep root /etc/passwd
40 date
41 date
42 history"

Complete Story

Related Stories: