If you want to run the last command you used a second time, enter two exclamation points. That looks in the history file and runs the last command in the list.
$ pwd
/home/scott
$ !!
pwd
/home/scott
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.