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 的保留字,用來根據樣式進行條件分支,無法顯示指令的定義。