The linux command “mknod myfifo b 4 16”

2017

The linux command “mknod myfifo b 4 16”

  1. A.

    Will create a character device if the user is root

  2. B.

    Will create a named pipe FIFO if the user is root

  3. C.

    Will create a block device if the user is root

  4. D.

    None of the above

Attempted by 29 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.

Explore the full course: Isro