Linux Today: Linux News On Internet Time.

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
debian$ !!
cat /etc/debian_version

"Using !text

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

Complete Story

Related Stories: