How to re run a previous command in your history with sudo privileges.

This is how to rerun a previous command with sudo if you forgot the sudo command to elevate privileges. Here I have tried to cat a file and I have forgotten to elevate my privileges with the sudo command. homer@calculate ~ $ cat /etc/shadow cat: /etc/shadow: Permission deniedhomer@calculate ~ $ cat /etc/shadow cat: /etc/shadow: Permission … Read more