The linux command “mknod myfifo b 4 16”
2017
The linux command “mknod myfifo b 4 16”
Answer: C. Will create a block device if the user is root — The command 'mknod myfifo b 4 16' creates a special file. The argument 'b' specifies that the file is a block device, not a FIFO (which would use 'p'). The…
- A.
Will create a character device if the user is root
- B.
Will create a named pipe FIFO if the user is root
- C.
Will create a block device if the user is root
- D.
None of the above
Attempted by 59 students.
Show answer & explanation
Correct answer: C
The command 'mknod myfifo b 4 16' creates a special file. The argument 'b' specifies that the file is a block device, not a FIFO (which would use 'p'). The numbers 4 and 16 represent the major and minor device numbers respectively.
Loading lesson…