Question discussion

In Linux, a file has one hard link and one symbolic (soft) link, and the original file name is then deleted with rm. Which statement is cor…

2566Medium DSSSB TGT Computer Science 0 replies 1 views
0

In Linux, a file has one hard link and one symbolic (soft) link, and the original file name is then deleted with rm. Which statement is correct?

  • AThe hard link still gives access to the data, while the symbolic link becomes a dangling link
  • BThe symbolic link still gives access to the data, while the hard link becomes a dangling link
  • CBoth links still give access to the data
  • DNeither link gives access to the data
Correct answer: A

Explanation

A hard link is another name for the same inode, so the data remain until the last name is removed, whereas a symbolic link only stores the path of the original name and breaks when that name is deleted.

Discussion 0

Nobody has replied yet. Start the discussion!