Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
A.
magic
B.
type
C.
file
D.
pmagic
E.
hash
題解
選項 A,沒有「magic」指令。
選項 B,「type」指令可以觀察指令是外部指令還是 Bash 內建的指令。
選項 C,「file」指令可以查看檔案的類型,為正確答案。
選項 D,沒有「pmagic」指令。
選項 E,「hash」指令用來操作目前 shell 下,用來暫存指令的雜湊表。
