bash run last command as sudo

Shell
sudo !!
Source

Also in Shell: