← blog

Say Please!!

Here is quick tutorial about aliases in Linux. An alias is kind of like a shortcut for a command line.

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!