CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
3
You visited us 3 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following is an index to the array of open files maintained by the kernel for a user?

A
i-node
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
i-node number
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
File descriptor
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
File pointer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B i-node number

i-node number is an index to the array of open files maintained by the kernel for a user.

The inode is a data structure in a unix style file system that describes a file system object such as a file or a directory. Each inode stores the attributes and disk block location(s) of the object's data.

Internal representation of a file is called an "inode" which contains all the required information and description of the file data and its layout on disk. This article deals in detail with the information stored in inode and the way it is represented in the kernel.

The value returned by an open call is termed a file descriptor and is essentially an index into an array of open files kept by the kernel.


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