Skip to content

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

  1. A
    will create a character device if user is root
  2. B
    will create a named pipe FIFO if user is root
  3. C
    will create a block device if user is root
    Correct answer
  4. D
    None 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.