linux查看硬盘型号命令 linux查看硬件配置信息( 三 )

lsusb -t查看系统中的USB拓扑,类似cat /sys/kernel/debug/usb/devices
[email protected]:/home/peng# lsusb -t/:Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/7p, 12M/:Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M/var/lib/usbutils/usb.ids还保存了很多设备商的VID信息
[email protected]:/home/peng# cat /var/lib/usbutils/usb.ids | grep King 7778Counterfeit flash drive [Kingston] 0100Kingston Flash Drive (128MB) c010Kingston FCR-HS2/ATA Card Reader07cbKingmax Technology, Inc. 4100Kingsun SF-620 Infrared Adapter 4959Kingsun KS-959 Infrared Adapter 0015Kingston DataTraveler ELITE 0016Kingston DataTraveler U3 0998Kingston Data Traveler2.0 Disk Driver 0999Kingston Data Traveler2.0 Disk Driver 6519Kingston DataTraveler 2.0 USB Stick 653cKingston DataTraveler 2.0 Stick (512M) 653dKingston DataTraveler 2.0 Stick (1GB) 6544TransMemory-Mini / Kingston DataTraveler 2.0 Stick (2GB) 6545Kingston DataTraveler 102/2.0 / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick0951Kingston Technology0d8aKing Jim Co., Ltd 00a3Smart King PRO Uninterruptible Power Supply (HID PDC)0e56Kingston Technology Company, Inc.0f8eKingnet Technology Co., Ltd13feKingston Technology Company Inc. 1f00Kingston DataTraveler / Patriot Xporter1687Kingmax Digital Inc.16dfKing Billion Electronics Co., Ltd. 2149EntropyKing Random Number Generatorlsusb -v查看系统中USB设备的详细信息
lsusb -v7. lshw查看所有硬件摘要信息下面命令可以查看所有硬件摘要信息,并输出成一个html文件,把此html文件导出到电脑上,直接打开,可以清楚的看到硬件信息:
lshw -html > /hardware.html8. lsscsi查看SCSI控制器设备的信息可以看到SCSI信息和所有虚拟磁盘以及光驱的信息,如果没有硬件SCSI控制器,那就不会返回信息:
[email protected]:/home/peng# lsscsi[2:0:0:0]diskVMware,VMware Virtual S 1.0/dev/sda [4:0:0:0]cd/dvdNECVMWar VMware SATA CD01 1.00/dev/sr0 插入一个U盘后再查看:
[email protected]:/home/peng# lsscsi[2:0:0:0]diskVMware,VMware Virtual S 1.0/dev/sda [4:0:0:0]cd/dvdNECVMWar VMware SATA CD01 1.00/dev/sr0 [33:0:0:0]diskKingston DataTraveler G21.00/dev/sdb 可以看到U盘为Kingston 。
9. 查看bios信息[email protected]:/home/peng# dmidecode -t bios# dmidecode 3.0Getting SMBIOS data from sysfs.SMBIOS 2.7 present.Handle 0x0000, DMI type 0, 24 bytesBIOS Information Vendor: Phoenix Technologies LTD Version: 6.00 Release Date: 07/29/2019 Address: 0xEA480 Runtime Size: 88960 bytes ROM Size: 64 kB Characteristics:ISA is supportedPCI is supportedPC Card (PCMCIA) is supportedPNP is supportedAPM is supportedBIOS is upgradeableBIOS shadowing is allowedESCD support is availableBoot from CD is supportedSelectable boot is supportedEDD is supportedPrint screen service is supported (int 5h)8042 keyboard services are supported (int 9h)Serial services are supported (int 14h)Printer services are supported (int 17h)CGA/mono video services are supported (int 10h)ACPI is supportedSmart battery is supportedBIOS boot specification is supportedFunction key-initiated network boot is supportedTargeted content distribution is supported BIOS Revision: 4.6 Firmware Revision: 0.0dmidecode以一种可读的方式dump出机器的DMI(Desktop Management Interface)信息 。这些信息包括了硬件以及BIOS,既可以得到当前的配置,也可以得到系统支持的最大配置,比如说支持的最大内存数等 。
如果要查看所有有用的信息
dmidecode -q里面包含了很多硬件信息 。


以上关于本文的内容,仅作参考!温馨提示:如遇健康、疾病相关的问题,请您及时就医或请专业人士给予相关指导!

「四川龙网」www.sichuanlong.com小编还为您精选了以下内容,希望对您有所帮助: