Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

A. File size
B. Modify timestamp
C. Link count
D. Inode number
E. Permissions

题解

实体链接(hard link)会在目录的 block 下创建一个文件名链接,来指到同样的 inode。使用「stat」、「ll」或是「ls -l」指令,皆可以观察到存在于文件的 inode 的连接数(Link count)信息,在实体链接(hard link)创建后会出现变化,增加了一个链接数。