In a Linux system, each device is treated as a file. Below I will list a few common devices and their names in Linux:
-
IDE hard disk /dev/hd[a-d]
-
Scsi/sata/usb hard disk /dev/sd[a-p]
-
U-Disk         /DEV/SD[A-P] (same as SATA)
-
Floppy drive      /DEV/FD[0-1]
-
Printer 25-pin:/dev/lp[0-2] usb:/dev/usb/lp[0-15]
-
Mouse    USB:/DEV/USB/MOUSE[0-15] ps2:/dev/psaux
-
Current CD Rom/dvd ROM /dev/cdrom
-
Current mouse /dev/mouse
-
Tape drives Ide:/dev/ht0 scsi:/dev/st0
Special attention should be paid to the hard disk, where the disk partition of each disk drive is not the same, and this disk file name will change. It is also proposed to emphasize that in Linux systems, almost all of the hardware device files are in the/dev directory.
For more hardware devices and filenames supported by the Linux kernel, refer to the following pages:
http://www.lanana.org/docs/device-list/
This article is from the "Goalidea" blog, make sure to keep this source http://goalidea.blog.51cto.com/11260622/1839710
Common devices and their file names in Linux