dmidecode
dmidecode --type memory
查看内存条型号、频率、制造商
dmidecode -t system
获取主机型号、序列号、UUID
lsblk
lsblk -d -o NAME,MODEL,SIZE
查看磁盘型号与容量(不含分区)
系统信息
查看内核信息
uname -a 系统类型、主机名、内核版本、硬件架构等
查看系统发行版
cat /etc/os-release 系统名称、版本号、ID等详细信息
大多数Linux发行版
lsb_release -a 发行版信息(需系统已安装lsb-release包)
fchao@Y7000X:~$ uname -a
Linux Y7000X 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_64 GNU/Linux
fchao@Y7000X:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 26.04 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION="26.04 (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=resolute
LOGO=ubuntu-logo
fchao@Y7000X:~$ hostnamectl
Static hostname: Y7000X
Icon name: computer-container
Chassis: container ☐
Machine ID: 311a842cd47a49f28cff3a0046cbf7f1
Boot ID: 9be0ae845145405f93b9748c0122c503
Virtualization: wsl
Operating System: Ubuntu 26.04 LTS
Kernel: Linux 6.18.33.2-microsoft-standard-WSL2
Architecture: x86-64