Which of the following commands shows the definition of a given shell command?

A.

where

B.

stat

C.

type

D.

case

题解

选项 A,没有「where」指令。

选项 B,「stat」可以显示文件或是文件系统的状态。

选项 C,「type」指令可以观察指令是外部指令还是 Bash 内置的指令,为正确答案。

选项 D,「case」是 Bash 的保留字,用来根据样式进行条件分支,无法显示指令的定义。