All files in
/ dev are special files ... they represent computer devices They were made with mknod syscall. My question is how can I know the minor and large numbers used to create this special file?
The list is called the LANANA Linux Device List , and it's Alan Cox Is administered by
You can find online (), or in the Linux source. The file name is in the kernel tree.
To view larger and smaller numbers, which created the node in / dev (or any device node for that matter), simply LS With -l options:
22:26 jesmith @andv% ls -l / dev / xvd? Brw-rw ---- 1 root disk 202, 1 November 20:31 / dev / xvda brw-rw ---- 1 root disk 202, 16 November 19:31 / dev / xvdb brw-rw --- - 1 root disk 202, 32 November 19:31 / dev / xvdc In this example, 202 is the main number of three devices, and 0 , b on the left is indicating that the node is a block device 16 , and 32 are optional c < / Code>, is a character device:
crw-rw-rw-1 root tty 5, 0 22 November 00:29 / dev / tty
No comments:
Post a Comment