Say Please!!

06 Feb 2019

Be kind to your machines and say please.

The command sudo !! will run the previously entered command as sudo.

You can set an alias please for this.

Do it by alias please='sudo $(history -p !!)'

To save the alias add the above line to your .bashrc file.

Be kind to your technology!