dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


Fun with Linux Commands

Oct 20, 2008, 06:02 (1 Talkback[s])

WEBINAR:
On-Demand

Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers


[ Thanks to ashokgelal for this link. ]

"3. Repeat the last executed command

$ !!

When is this useful? If you are writing a shell script and want to execute a command twice. Another case where it comes handy is you forgot to add something in front of a long command such as apt-get install foo foo1 foo2 foo3 foo4 foo5."

Complete Story

Related Stories: