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?
- A. The symbolic link breaks, but the hard link still opens the data
- B. The hard link breaks, but the symbolic link still opens the data
- C. Both links break because the data is erased at once
- 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 हटा दिया जाता है। क्या होता है?
- A. सिंबॉलिक लिंक टूट जाता है, पर हार्ड लिंक अब भी डेटा खोलता है
- B. हार्ड लिंक टूट जाता है, पर सिंबॉलिक लिंक अब भी डेटा खोलता है
- C. दोनों लिंक टूट जाते हैं क्योंकि डेटा तुरंत मिट जाता है
- D. दोनों लिंक चलते रहते हैं क्योंकि लिंक डेटा की प्रतिलिपि बनाते हैं
उत्तर: A. हार्ड लिंक उसी इनोड का दूसरा नाम है, इसलिए कोई भी हार्ड लिंक बचा रहने तक डेटा बना रहता है। सिंबॉलिक लिंक केवल पथ रखता है, जो अब कहीं नहीं ले जाता।
More Computer Awareness questions
- In Linux, the command chmod 754 file gives the file which permission string?
- Match the Windows shortcut with its action: 1. Windows + L 2. Windows + D 3. Alt + F4 4. Alt + Tab; a. Show the desktop b. Close the…
- A program calls fork() three times in a row, with no conditions, and every call succeeds. How many processes exist in total, counting the…
- A user program divides an integer by zero. What does the processor generate?
- Why do processors provide separate user mode and kernel (supervisor) mode?
- Which scheduler swaps partly executed processes out of memory to the disk, and later back in, to adjust the degree of multiprogramming?