Which of the following properties of an existing file changes when a hard link pointing to that file is created?
Which of the following properties of an existing file changes when a hard link pointing to that file is created?
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.
B. Link count Is correct Also this does not apply to *soft* links , as they will not increase link count
Correct. https://www.theunixschool.com/2012/10/link-count-file-vs-directory.html
Agreed!
tks you for your info!
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