I am trying to find out what command should be used to figure out where the sudo command resides. The question is: What command will show where the sudo command resides?
Asked
Active
Viewed 1,055 times
3 Answers
1
You can use the which command to know where any command file is located.
which sudo should do the trick.
1
If you want to know what bash will execute when you enter sudo in a bash prompt, enter
type sudo
This covers commands in the path, aliases, functions and built-ins.
xenoid
- 10,597
0
There are several ways, here is one way even if the executable is not in your path. How to find an executable
find / -perm +111 sudo
D.Fitz
- 101