QuestionQ76

VerifiedGNU and Unix Commands

Which of the following tools can display the full path of an executable file that the current shell would run when a command is started without specifying its full path?

Choose two
Explanation

which searches the directories in PATH to locate an executable command and displays its pathname. Bash type reports how the current shell interprets a command name and can print the pathname of the executable file it would use. The Bash manual documents type as identifying how a name would be interpreted as a command, and Bash searches PATH for executable files when resolving command names.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!