DEV Community

Discussion on: 5 Handy Bash Tricks in 2 Minutes

Collapse
 
ssimontis profile image
Scott Simontis

My favorite piece of knowledge:

If you choose to make an alias for sudo, you should ensure there is a space at the end, or else the shell will not expand any more aliases within the command.

So if I wanted to use please instead of sudo, I would need to do:

alias please="sudo "

I am always tempted to put spaces around the equals sign, probably my #1 scripting mistake.