How does `alias sudo="sudo "` work? How does `alias sudo="sudo "` work? shell shell

How does `alias sudo="sudo "` work?


Looking at the man page for alias:

A trailing space in VALUE causes the next word to be checked for alias substitution when the alias is expanded.

Source: http://www.linuxcommand.org/lc3_man_pages/aliash.html


What we got in best practices for the team:

alias sodu='sudo'alias sodo='sudo'alias sdoo='sudo'alias sudu='sudo'alias sduo='sudo'

Just add an alias you think is necessary for yourself