Fun with Linux Commands

[ 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.”


Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis