I often forget to run commands with sudo. I\'m looking for a way to make a bash function (or alias) for repeating the last command with sudo. Something
sudo
!! can be used to reference the last command. So:
!!
sudo !!