Unix

1:

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

A.

Only directory entry and tile contents

B.

Only i-node and file contents

C.

All the three

D.

None of the above

 

Answer : B

Explanation :

Directory entries have two fields. One for the file name and the other for the i-node number. The i-node has many fields for storing all the information about the file, except the file name and the actual content of the tile. The content of the file will be in a separate place. So. the details of any file will be spread over these three places. When a file is updated its name and i-node number will remain the same. Only the contents and some fields in the i-node (like file size, time of last access, etc.) need to be changed. Hence the answer

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.