For example, if passed ls as input it should tell me that /bin/ls will run if run ls on the command-line.
|
| |||
|
feedback
|
migrated from stackoverflow.com Oct 29 '11 at 16:16
This question came from our site for professional and enthusiast programmers.
The command to use varies from shell to shell.Only a shell built-in will tell one correctly what the shell will do for a given command name, since only built-ins can fully know about aliases, shell functions, other built-ins, and so forth. Remember: Not all commands correspond to executable files in the first place.
| ||||
feedback
|
|
You can use
It works by searching the
| |||||||||
feedback
|
|
The command which finds the actual executable is
To see all the intermediate links:
| ||||
|
feedback
|
|
You can try:
It gives me:
| |||
|
feedback
|
