dmidecode is a tool for dumping a computer DMI (some say SMBIOS) table contents in a human-readable format. So if your machine is a vm, you should not get any output.
# ethtool -i eth0 driver: virtio_net version: 1.0.0 firmware-version: expansion-rom-version: bus-info: 0000:00:03.0 supports-statistics: no supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no
此处简单介绍一下lspci命令。
lspci
lspci 是一个用来显示系统中所有PCI总线设备或连接到该总线上的所有设备的工具。
lspci 不加任何选项
1 2 3 4 5 6 7 8 9
Host bridge: <==主板芯片 VGA compatible controller <==显卡 Audio device <==音频设备 PCI bridge <==接口插槽 USB Controller <==USB控制器 ISA bridge IDE interface SMBus Ethernet controller <==网卡