Ubuntu server / Linux terminal – Mini tip: sudo your previous command

Video is ready, Click Here to View ×

You don’t have to retype your last command or go all the way to the front of the line if you forgot sudo.
just type sudo !! (dont forget the space)

Be the first to comment

Leave a Reply

Your email address will not be published.