Mar 292010
Repeat previous command in Bash
Answer:
It is easy to type !! when you want to repeat the previous executed command in Bash
# ls -l /var/log/messages
-rw-r----- 1 syslog adm 330 Mar 29 17:17 /var/log/messages
# !!
ls -l /var/log/messages
-rw-r----- 1 syslog adm 330 Mar 29 17:17 /var/log/messages