Which of the following commands can be used to display the inode number of a given file?

A.

inode

B.

ls

C.

ln

D.

cp

题解

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

选项 B,「ls」指令可以查看目录下的文件属性,加上「-i」参数可以看到 inode 号码。

选项 C,「ln」指令用来创建实体链接或是符号链接。

选项 D,「cp」指令用来拷贝文件。