How To Install Mknod In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install mknod
-
Debian
apt-get install coreutils
Click to copy -
Ubuntu
apt-get install coreutils
Click to copy -
Alpine OS
apk add coreutils
Click to copy -
Arch Linux
pacman -S coreutils
Click to copy -
Kali Linux
apt-get install coreutils
Click to copy -
CentOS
yum install coreutils
Click to copy -
Fedora
dnf install coreutils
Click to copy -
Raspbian
apt-get install coreutils
Click to copy -
macOS
brew install coreutils
Click to copy
Create block or character device special files.
How to use mknod?
Below are few example commands for mknod that you can use in the terminal.
Create a block device:sudo mknod path/to/device_file b major_device_number minor_device_number
Click to copyCreate a character device:sudo mknod path/to/device_file c major_device_number minor_device_number
Click to copyCreate a FIFO (queue) device:sudo mknod path/to/device_file p
Click to copyCreate a device file with default SELinux security context:sudo mknod -Z path/to/device_file type major_device_number minor_device_number
Click to copy
Installing mknod command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of mknod 2024 package in your OS.