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
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
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.