统信uos查看硬件信息
1. 查看处理器信息
1 |
lscpu |
- 架构:查看Architecture字段。
- 型号:查看Model name字段。
2. 查看内存信息
1 |
dmidecode -t memory |
- 容量:查看Size字段。
- 类型:查看Type字段。
或者使用以下命令快速查看内存容量:
1 |
free -h |
3. 查看硬盘信息
1 |
lsblk |
- 类型:查看磁盘类型(如disk或part)。
- 容量:查看SIZE字段。
或者使用以下命令查看详细信息:
1 |
fdisk -l |
4. 查看网卡信息, 使用ethtool查看网卡速度和详细信息
ethtool是一个专门用于查询和配置网卡的工具。
安装ethtool
如果系统中没有ethtool,可以通过以下命令安装:
1 2 |
apt install ethtool # Debian/Ubuntu系 yum install ethtool # CentOS/RHEL系 |
查看网卡信息
首先查看网卡名称:
1 |
ip addr |
输出示例:
1 2 3 4 |
1: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 00:1a:2b:3c:4d:5e brd ff:ff:ff:ff:ff:ff inet 192.168.1.100/24 brd 192.168.1.255 scope global eth0 valid_lft forever preferred_lft forever |
使用ethtool查看网卡详细信息:
1 |
ethtool eth0 |
输出示例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: on (auto) |
- 速度:查看Speed字段。
- 厂商和型号:可以通过Supported link modes和Advertised link modes推断网卡型号。
5. 查看显卡信息
1 |
lspci | grep -i vga |
- 查看显卡的PCI信息。
或者使用以下命令查看详细信息:
1 |
lshw -C display |
6. 综合查看硬件信息
您可以使用以下工具综合查看硬件信息:
使用lshw
1 |
lshw |
- 查看所有硬件信息,包括处理器、内存、硬盘、网卡和显卡。
使用inxi
1 2 |
apt install inxi # 安装inxi工具 inxi -F |