linux 查看某些硬件信息

查看CPU信息个数、核数、线程

[root@localhost yum.repos.d]# cat /proc/cpuinfo
processor       : 7
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 4
model name      : Quad-Core AMD Opteron(tm) Processor 8382
stepping        : 2
cpu MHz         : 2612.036
cache size      : 512 KB
physical id     : 0
siblings        : 8
core id         : 7
cpu cores       : 8
apicid          : 7
initial apicid  : 7
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow constant_tsc rep_good tsc_reliable nonstop_tsc unfair_spinlock pni cx16 popcnt hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw
bogomips        : 5224.07
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:


processor:线程数,当前为8个。
physical id:物理CPU,当前只有0,所以只有一个物理CPU。
cpu cores:CPU核数,当前为8核。
故当前CPU信息为单CPU,每个CPU8核,总个8个线程。

查看内存信息

[root@localhost yum.repos.d]# cat /proc/meminfo 

查看硬件SN与型号

[root@localhost yum.repos.d]# dmidecode -t 1
# dmidecode 2.12-dmifs
SMBIOS 2.7 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: VMware, Inc.
    Product Name: VMware Virtual Platform
    Version: None
    Serial Number: VMware-56 4d e2 97 37 c3 56 14-6b f6 82 77 09 9c 5f 7a
    UUID: 97E24D56-C337-1456-6BF6-8277099C5F7A
    Wake-up Type: Power Switch
    SKU Number: Not Specified
    Family: Not Specified

机器型号Product Name: VMware Virtual Platform
机器序列号Serial Number: VMware-56 4d e2 97 37 c3 56 14-6b f6 82 77 09 9c 5f 7a

查看网口型号

[root@localhost yum.repos.d]# dmesg |grep -i eth
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值