Under Linux, the/dev directory is important and the various devices are below. Dev is the abbreviation for device, which means devices. /dev This directory is important for all users, because this directory contains all the external devices used in the Linux system.
But here is not the driver for the external device, which is not the same as windows, it is actually a port to access these external devices. We can easily access these external devices, and access to a file, a directory without any distinction. Of course, Linux inherits the Unix style and considers all devices to be a file. devices can usually be divided into two types: block device file (b) and character device file (c).
Device files are typically in the/dev directory, and the following are common device descriptions:
/DEV/HD[A-T] is an IDE device
/DEV/SD[A-Z] is a SCSI device
/DEV/FD[0-7] is a standard floppy drive
/DEV/MD[0-31] is a soft raid device
/DEV/LOOP[0-7] is a local loopback device
/DEV/RAM[0-15] is a memory device
/dev/null Infinite data receiving device, equivalent to a black hole, can also be understood as a bit bucket
/dev/zero Unlimited 0 Resources
/DEV/TTY[0-63] Virtual terminal
/DEV/TTYS[0-3] Serial Port
/dev/console Console
/DEV/FB[0-31] is framebuffer, and it's about the reality of graphics.
/dev/cdrom =/dev/hdc
/dev/modem =/dev/ttys[0-9]
/dev/random Random number Device
/dev/urandom Random number Device
For devices in the Dev directory, we can use DEVFS or udev or SYSFS related things, which I'll cover in the next blog post.
Sinsing analysis of the/dev directory in Linux