Designer News is where the design community meets.
over 7 years ago from David M, UI Developer
Not an alias, but I find it super useful and some of you may too. When you run a command that requires sudo and you forgot to add it, you can simply do this:
sudo !!
It will prepend sudo to your last command.
Some context - The !! is replaced with the previous command.
!!
Now playing
Not an alias, but I find it super useful and some of you may too. When you run a command that requires sudo and you forgot to add it, you can simply do this:
sudo !!
It will prepend sudo to your last command.