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

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

More on LinuxToday


10 Bash Tips for Working Faster With the Shell (Part 1 of 2)

Dec 22, 2010, 15:32 (0 Talkback[s])
(Other stories by Craciun Dan)

[ Thanks to Chris7mas for this link. ]

"Using !!

"This command is used to bring back and automatically execute the last command in history. It is the same as pressing C^P followed by Enter). Here's an example:

debian$ cat /etc/debian_version
5.0.7
debian$ !!
cat /etc/debian_version
5.0.7

"Using !text

"Replacing 'text' with any command will call the last command in the history which starts with 'text'. Example:"

Complete Story

Related Stories: