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.

apropos

B.

which

C.

find

D.

query

E.

whereis

題解

選項 A,「apropos」指令可以搜尋手冊(manual page)的名稱和描述。

選項 B,「which」指令可以顯示終端機指令輸入後會執行的檔案路徑。

選項 C,「find」指令可以搜索檔案,為正確答案。

選項 D,沒有「query」指令。

選項 E,「whereis」指令可以找出所有執行檔、原始碼、手冊的所在路徑。