Multiple choice technology operating systems

3 How to create devices/device files in Linux

  1. 1 mkdev

  2. 2 mknod

  3. 3 lndev

  4. 4 None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The mknod system call is used to create device files (also called special files) in Linux. It creates a filesystem node (file, device FIFO, or socket) with the specified name and type. mkdev is not a standard Linux command, and lndev does not exist.

AI explanation

mknod is the correct Linux command for creating device files (character or block special files) — it lets you manually create an entry in the filesystem tied to a specific major/minor device number, historically used before udev automated /dev population. 'mkdev' and 'lndev' aren't real standard Linux commands, so they're wrong, and since a valid answer (mknod) exists, 'None' is also wrong.