The file name of each hardware device in Linux
"In a Linux system, each device is treated as a file" for example, the name of the hard disk of the SATA interface is/dev/sd[a-d], where the letters in parentheses are any of the a-d, i.e./dev/sda,/dev/sdb,/DEV/SDC , and/dev/sdd The meaning of these four documents.
In addition to the first point, in the Linux system, almost all the hardware devices are in the/dev directory, so you will see/DEV/SDA,/dev/sr0 and so on the filename oh.
What about the printer and the floppy? It's/dev/lp0,/dev/fd0! Okay, what about the other interface devices? Below is a list of some common devices and their names in Linux:
Device |
The file name of the device within Linux |
Scsi/sata/usb Hard Drive Machine |
/DEV/SD[A-P] |
USB Flash Disk |
/DEV/SD[A-P] (same as SATA) |
VIRTI/O interface |
/DEV/VD[A-P] (used in virtual machines) |
Floppy drive |
/DEV/FD[0-7] |
Printer |
/DEV/LP[0-2] (25-pin printer) /DEV/USB/LP[0-15] (USB interface) |
Mouse |
/DEV/INPUT/MOUSE[0-15] (General) /dev/psaux (PS/2 interface) /dev/mouse (current mouse) |
Cdrom/dvdrom |
/DEV/SCD[0-1] (General) /DEV/SR[0-1] (general, CentOS more common) /dev/cdrom (current CDROM) |
Tape drive |
/dev/ht0 (IDE interface) /dev/st0 (SATA/SCSI interface) /dev/tape (Current tape) |
IDE Hard Drive |
/DEV/HD[A-D] (Legacy system only) |
Turn-linux Hardware and partitions