CmdID

CmdID / Commands

mknod

Create new device node NAME. toybox

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD

Create new device node NAME. TYPE is b for block device, c for character device, p for named pipe (which ignores MAJOR/MINOR). !-Z Set security context of new device These days devtmpfs usually creates nodes for you. For the historical list, See https://www.kernel.org/pub/linux/docs/lanana/device-list/devices-2.6.txt

mknod [-m MODE] ![!-!Z! !C!O!N!T!E!X!T!]! NAME TYPE [MAJOR MINOR]
-m MODEMode (file permissions) of new device, in octal or u+x format

Create block or character device special files.

Create a block device

sudo mknod path/to/device_file b major_device_number minor_device_numberIdentify

Create a character device

sudo mknod path/to/device_file c major_device_number minor_device_numberIdentify

Create a FIFO (queue) device

sudo mknod path/to/device_file pIdentify

Create a device file with default SELinux security context

sudo mknod --context path/to/device_file type major_device_number minor_device_numberIdentify