Sometimes you’ll find commands in forums or whatever, and when you try to use them, you are informed you do not have the privileges to do so. Most people understand that means it needs to be run as super user, done by preceding the command with sudo. But I’ve seen people then retype the whole command with sudo before it, which you don’t really need to do. Besides the fact you could just hit the UP arrow on your keyboard to display the last command, hit the Home button, the type sudo (and a space), there is actually an easier way – just type:
If you end up forgetting this, another way is to hit your UP-arrow key to display the last command you tried to run, hit Home to get to the beginning of the command, then type sudo (followed by a space), then hit Enter to successfully run that command as super user.
Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!