How do you create special files like named pipes and device files in UNIX OS?
Submitted by: AdministratorThe system call mknod creates special files in the following sequence.
1. kernel assigns new inode,
2. sets the file type to indicate that the file is a pipe, directory or special file,
3. If it is a device file, it makes the other entries like major, minor device numbers.
For example:
If the device is a disk, major device number refers to the disk controller and minor device number is the disk.
Submitted by: Administrator
1. kernel assigns new inode,
2. sets the file type to indicate that the file is a pipe, directory or special file,
3. If it is a device file, it makes the other entries like major, minor device numbers.
For example:
If the device is a disk, major device number refers to the disk controller and minor device number is the disk.
Submitted by: Administrator
Read Online UNIX Operating System Job Interview Questions And Answers
Top UNIX Operating System Questions
☺ | Brief about the directory representation in UNIX OS? |
☺ | How do you create special files like named pipes and device files in UNIX OS? |
☺ | What are the Unix system calls for I/O? |
☺ | What is a UNIX OS shell? |
☺ | What is inode in UNIX OS? |
Top Operating System (OS) Categories
☺ | RTOS Interview Questions. |
☺ | Windows 7 Interview Questions. |
☺ | MAC Operating System Interview Questions. |
☺ | Disk Operating System (DOS) Interview Questions. |
☺ | Shell Scripting Interview Questions. |