101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 84


Which of the following properties of an existing file changes when a hard link pointing to that file is created?

Show Answer
Correct Answer: B

When a hard link is created, the link count of the existing file increases. This is because a hard link essentially creates another directory entry for the file, pointing to the same inode. File size, modify timestamp, inode number, and permissions remain unchanged because the actual data and attributes of the file do not alter; only the count of references to the file (link count) increases.

Discussion

3 comments
Sign in to comment
tzahiOption: B
Mar 21, 2022

B. Link count Is correct Also this does not apply to *soft* links , as they will not increase link count

GuillemOption: B
Apr 22, 2021

Correct. https://www.theunixschool.com/2012/10/link-count-file-vs-directory.html

CuriousLinuxCat
Jul 24, 2021

Agreed!

halq
Aug 31, 2021

tks you for your info!

ResekoOption: B
Sep 1, 2023

Correct answer: B Example: ln zip_3.0-13_amd64.deb zip_3_hardlink.deb ls -li 1465354 -rw-r--r-- 2 calvarez calvarez 229532 feb 19 2023 zip_3.0-13_amd64.deb 1465354 -rw-r--r-- 2 calvarez calvarez 229532 feb 19 2023 zip_3_hardlink.deb