Under Linux, the/dev directory is important and the various devices are below. Here's a brief summary:
DEV is the acronym for Devices. /dev This directory is important to all users. Because this directory contains all the external devices used in the Linux system. But this is not the driver for the external device, which is not the same as the Windows, DOS operating system. It is actually a port that accesses these external devices. We can easily access these external devices, and access a file without any difference in a directory.
Linux inherits the Unix style, recognizing all devices as a file.
There are two types of device files: block device file (b) and character device file (c)
The device files are generally stored in the/dev directory, and the common device files are described as follows:
/dev/hd[a-t]:ide Equipment
/DEV/SD[A-Z]:SCSI Equipment
/DEV/FD[0-7]: Standard floppy drive
/DEV/MD[0-31]: Soft RAID device
/DEV/LOOP[0-7]: Local loopback device
/DEV/RAM[0-15]: Memory
/dev/null: Unlimited data reception device, equivalent to black hole
/dev/zero: Unlimited 0 Resources
/DEV/TTY[0-63]: Virtual terminal
/DEV/TTYS[0-3]: Serial port
/DEV/LP[0-3]: the same port
/dev/console: Control Console
/dev/fb[0-31]:framebuffer
/dev/cdrom =/dev/hdc
/dev/modem =/dev/ttys[0-9]
/dev/pilot =/dev/ttys[0-9]
/dev/random: Random number devices
/dev/urandom: Random number devices
(PS: Random number device, I will write a blog after the summary)
How are the nodes in the/dev directory created?
DEVF or Udev will automatically create it for you.
Kobject is the foundation of the Sysfs file system, and Udev acquires newly created devices by monitoring and detecting SYSFS.
Linux/dev Directory detailed