All files in /dev are special files… they represent devices of the computer.
They were created with the mknod syscall. My question is: How can I know the minor and
major numbers that were used to create this special file?
All files in /dev are special files… they represent devices of the computer. They
Share
The list is called the LANANA Linux Device List, and it is administered by Alan Cox.
You can find the latest copy online (direct link), or in the Linux source. Its filename in the kernel tree is
Documentation/devices.txt.To see the major and minor numbers that created a node in
/dev(or any device node for that matter), simply uselswith the-loption:In this example,
202is the three devices’ major number, and0,16, and32are minors. Thebat left indicates that the node is a block device. The alternative isc, a character device: