Shortcut to run current command with sudo in bash


For me, I mostly forget to add “sudo” to the command until the time I am actually supposed to run it. Also sometimes, on some systems, bash completion does not work as expected with “sudo”. With these …

This website uses cookies to ensure you get the best experience on our website. Learn more Got it