Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Which of the following commands can be used to search for the executable file foo when it
has been placed in a directory not included in $PATH?

Which of the following commands can be used to search for the executable file foo when it
has been placed in a directory not included in $PATH?

A.
whereis

B.
apropos

C.
which

D.
find

E.
query



Leave a Reply 1

Your email address will not be published. Required fields are marked *


root

root

I would say A: whereis is more relevant since you are specifically searching for an executable, no need to use find then, I believe whereis will also search outside your path, correct me if Im wrong. For executables I do whereis, locate, and lastly find.