Last Updated: February 25, 2016
·
507
· arashm

alias for previous command

sometimes you write a long command and after entering you remember that you haven't enter sudo at the beginning (or you wanna pipe it to another command).

simply with !! command you can invoke the previous command:

sudo !!
!! | less