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)建立後會出現變化,增加了一個連結數。