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 下,用来暂存指令的哈希表。
