获取主机厂商型号信息,如有需要,可以根据获取到的厂商型号,去官网获取产品规格书
sudo dmidecode -t system# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.Handle 0x0001, DMI type 1, 27 bytes
System InformationManufacturer: Dell Inc.Product Name: Precision 5820 TowerVersion: Not SpecifiedSerial Number: 3MY2LB3UUID: 4c4c4544-004d-5910-8032-b3c04f4c4233Wake-up Type: Power SwitchSKU Number: 0738Family: Precision
获取软件版本
hostnamectlStatic hostname: server-Precision-5820-TowerIcon name: computer-desktopChassis: desktopMachine ID: f65deb3bc7cb4468a5494b4937002531Boot ID: bba3f81fff9d4e0f8dda5de011cac958Operating System: Ubuntu 20.04.6 LTSKernel: Linux 5.4.0-150-genericArchitecture: x86-64