I made sudo see aliases with alias sudo='sudo '. I aliased sudo to please (alias please=sudo), and with please it didn't worked: alias please='please '. please still didn't see my aliases. How to make please see aliases?

  • I really don't understand what you are trying to achieve?
    – user986805
    Apr 7, 2022 at 4:59
  • Probably you would want to ask - is it possible to use an alias within another alias?
    – pa4080
    Apr 7, 2022 at 12:41

2 Answers 2


You'd make please "see" aliases in the same way that you made sudo see aliases: alias please='sudo '


$ type la
la is aliased to `ls -A'

$ alias please='sudo '

$ please la /root
[sudo] password for steeldriver:
.bash_history  .bashrc  .lesshst  .local  .motd_shown  .profile  .viminfo  trace.out

See also


Sudo is an external program, so it can only run programs that are in the PATH var, but aliases are only in bash meaning that when you make a alias bash goes a look at the alias and runs it.

You must log in to answer this question.