mknod
Create new device node NAME. toybox
On Linux
Linux
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 formatLinux
Create block or character device special files.
Create a block device
sudo mknod path/to/device_file b major_device_number minor_device_numberIdentifyCreate a character device
sudo mknod path/to/device_file c major_device_number minor_device_numberIdentifyCreate a FIFO (queue) device
sudo mknod path/to/device_file pIdentifyCreate a device file with default SELinux security context
sudo mknod --context path/to/device_file type major_device_number minor_device_numberIdentify