ISRO Scientist/Engineer CSE 2017Operating Systems › Not yet assigned to a topic
ISRO Scientist/Engineer CSE 2017 PYQ: The Linux command mknod myfifo b 4 16
The Linux command mknod myfifo b 4 16
- Awill create a character device if user is root
- Bwill create a named pipe FIFO if user is root
- Cwill create a block device if user is rootCorrect answer
- DNone of these
Answer
(C) will create a block device if user is root
Approach
Recall the syntax of the Linux mknod command: mknod <name> <type> <major> <minor>. The type field determines what kind of special file is created: 'c' for character device, 'b' for block device, and 'p' for named pipe (FIFO). In the given command, the type is 'b', so it creates a block device. Creating device nodes requires root privileges.
Reviewed by ISRO IQ Editorial Team.