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