If I issue
how does Linux look for that
my-command is in my PATH. I can invoke it without any problem. However, when I invoke it with
sudo, I'll get
command not found.
Interesting, never experience this before. How to overcome?
EDIT: That "Possible duplicate"'s selected answer is wrong, well, at least not to the point. This answer, from terdon, is the correct one.