Forrest logo
back to context overview

mknod

List of commands for mknod:

  • mknod:tldr:20672 mknod: Create a device file with default SELinux security context.
    $ sudo mknod -Z ${path-to-device_file} ${type} ${major_device_number} ${minor_device_number}
    try on your machine
    explain this command
  • mknod:tldr:98823 mknod: Create a block device.
    $ sudo mknod ${path-to-device_file} b ${major_device_number} ${minor_device_number}
    try on your machine
    explain this command
  • mknod:tldr:ad4c6 mknod: Create a FIFO (queue) device.
    $ sudo mknod ${path-to-device_file} p
    try on your machine
    explain this command
  • mknod:tldr:ee30c mknod: Create a character device.
    $ sudo mknod ${path-to-device_file} c ${major_device_number} ${minor_device_number}
    try on your machine
    explain this command
back to context overview