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
Not enough?
sudo !!
if you want the S simply put:
S
alias S=sudo
and use it
S !!
the !! mean the last command
!!
last command