Computer AwarenessHardIBPS SO IT Officer

A file report.txt has one hard link and one symbolic link pointing to it. The original name report.txt is then deleted. What happens?

  1. A. The symbolic link breaks, but the hard link still opens the data
  2. B. The hard link breaks, but the symbolic link still opens the data
  3. C. Both links break because the data is erased at once
  4. D. Both links keep working because links copy the data

Correct answer: A. The symbolic link breaks, but the hard link still opens the data

A hard link is another name for the same inode, so the data survives while any hard link remains. A symbolic link stores only the path, which now points nowhere.

हिंदी में

फ़ाइल report.txt की ओर संकेत करने वाला एक हार्ड लिंक और एक सिंबॉलिक लिंक है। फिर मूल नाम report.txt हटा दिया जाता है। क्या होता है?

  1. A. सिंबॉलिक लिंक टूट जाता है, पर हार्ड लिंक अब भी डेटा खोलता है
  2. B. हार्ड लिंक टूट जाता है, पर सिंबॉलिक लिंक अब भी डेटा खोलता है
  3. C. दोनों लिंक टूट जाते हैं क्योंकि डेटा तुरंत मिट जाता है
  4. D. दोनों लिंक चलते रहते हैं क्योंकि लिंक डेटा की प्रतिलिपि बनाते हैं

उत्तर: A. हार्ड लिंक उसी इनोड का दूसरा नाम है, इसलिए कोई भी हार्ड लिंक बचा रहने तक डेटा बना रहता है। सिंबॉलिक लिंक केवल पथ रखता है, जो अब कहीं नहीं ले जाता।

More Computer Awareness questions

Exams that ask this topic