Linux - Describe how the kernel differentiates device files and ordinary files

Describe how the kernel differentiates device files and ordinary files.

- Kernel checks 'type' field in the file's inode structure.

- There are 2 device files- Character device file and Block device file. To distinguish these two, specify b – for block device file and c – for character device file in the inode structure of the file. An ordinary file does not require these fields.

- A device file is an interface for a device driver which appears in a file system.

- Device files provide simple interfaces to peripheral devices, such as printers and serial ports.
Linux - How to switch to a super user status to gain privileges
How to switch to a super user status to gain privileges - The command ?su? is used to get super user status.......
20 Unix Interview Questions and Answers - Freshers, Experienced
Unix interview questions with answers for freshers and experienced, unix online test, unix jobs - In this series, we have covered all about UNIX and answered the questions that might be asked during an interview.
Unix - What are the Unix system calls for I/O?
What are the Unix system calls for I/O? - creat(name, permissions).......
Post your comment