wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Among directory entry, i-node and the file contents, which will be changed when a file is updated?

A
Only directory entry and file contents
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Only inode and file contents
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Both (1) and (2)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Only inode and file contents

Among directory entry, i-node and the file contents, only i-node and file contents will be changed when a file is updated.

An i-node is an entry in i-node table, containing information (the metadata) about a regular file and directory. An i-node is a data structure on a traditional Unix-style file system.

Whenever a user or a program needs access to a file, the operating system first searches for the exact and unique i-node (i-node number), in a table called an i-node table. In fact the program or the user who needs access to a file, reaches the file with the help of the i-node number found from the i-node table.



906312_917343_ans_4f699a7bb0c1417d821f7d8b6ad3368a.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Computers in Accounting
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon