Terminal History: recalling the last command

Need to run the previous command you just ran with sudo? Just type sudo !! to recall the last command ran with sudo in the front. Typing !! brings back the last command that you just ran and putting sudo in front prepends sudo to the previous command.

viewport

RTFM

Instagram Post