在使用Linux系统的时候,我们有时候需要查看服务器硬件相关信息,接下来吾爱编程为大家详细的介绍一下linux查看硬件信息命令,有需要的小伙伴可以参考一下:

1、查看服务器硬件信息

(1)、查看服务器型号、序列号

[[email protected] ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"

Manufacturer: VMware, Inc.

Product Name: VMware Virtual Platform

Serial Number: VMware-56 4d d3 e0 c1 fe 00 9c-05 a5 96 0d f7 45 c5 04

(2)、查看主板型号

[[email protected] ~]# dmidecode |grep -A16 "System Information$"

(3)、查看BIOS信息

[[email protected] ~]# dmidecode -t bios

# dmidecode 3.0

Getting SMBIOS data from sysfs.

SMBIOS 2.7 present.

Handle 0x0000, DMI type 0, 24 bytes

BIOS Information

Vendor: Phoenix Technologies LTD

Version: 6.00

Release Date: 07/03/2018

Address: 0xEA520

Runtime Size: 88800 bytes

ROM Size: 64 kB

Characteristics:

ISA is supported

PCI is supported

PC Card (PCMCIA) is supported

PNP is supported

APM is supported

BIOS is upgradeable

BIOS shadowing is allowed

ESCD support is available

Boot from CD is supported

Selectable boot is supported

EDD is supported

Print screen service is supported (int 5h)

8042 keyboard services are supported (int 9h)

Serial services are supported (int 14h)

Printer services are supported (int 17h)

CGA/mono video services are supported (int 10h)

ACPI is supported

Smart battery is supported

BIOS boot specification is supported

Function key-initiated network boot is supported

Targeted content distribution is supported

BIOS Revision: 4.6

Firmware Revision: 0.0

(4)、查看内存槽及内存条

(5)、查看网卡信息:

[[email protected] ~]# dmesg | grep -i Ethernet

[    3.911619] xen_netfront: Initialising Xen virtual ethernet driver

(6)、查看pci信息,即主板所有硬件槽信息

2、查看CPU信息

(1)、查看cpu型号:

[[email protected] ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

2  Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz

(2)、查看系统中实际物理CPU的数量(物理)

[[email protected] ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l

2

(3)、系统中实际物理CPU的数量(核数)

[[email protected] ~]# cat /proc/cpuinfo |grep 'processor'|wc -l

4

(4)、查看每个物理CPU中core的个数(即核数)

[[email protected] ~]# cat /proc/cpuinfo |grep "cores"|uniq

cpu cores    : 1

(5)、查看CPU的主频

[[email protected] ~]# cat /proc/cpuinfo |grep MHz|uniq

cpu MHz        : 3912.000

(6)、查看CPU的详细信息

[[email protected] ~]# cat /proc/cpuinfo |grep MHz|uniq

cpu MHz        : 3912.000

[[email protected] ~]# cat /proc/cpuinfo | head -20

processor    : 0

vendor_id    : GenuineIntel

cpu family    : 6

model        : 158

model name    : Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz

stepping    : 9

microcode    : 0x8e

cpu MHz        : 3912.000

cache size    : 3072 KB

physical id    : 0

siblings    : 1

core id        : 0

cpu cores    : 1

apicid        : 0

initial apicid    : 0

fpu        : yes

fpu_exception    : yes

cpuid level    : 22

wp        : yes

flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp arch_capabilities

(7)、查看CPU的相关信息

[[email protected] ~]# lscpu

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                2

On-line CPU(s) list:   0,1

Thread(s) per core:    1

Core(s) per socket:    1

座:                 2

NUMA 节点:         1

厂商 ID:           GenuineIntel

CPU 系列:          6

型号:              158

型号名称:        Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz

步进:              9

CPU MHz:             3912.000

BogoMIPS:            7824.00

超管理器厂商:  VMware

虚拟化类型:     完全

L1d 缓存:          32K

L1i 缓存:          32K

L2 缓存:           256K

L3 缓存:           3072K

NUMA 节点0 CPU:    0,1

Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp arch_capabilities

(8)、查看cpu运行模式

[[email protected] ~]# getconf LONG_BIT

64

(9)、查看cpu是否支持64bit

[[email protected] ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

2

(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)

3、查看内存信息

(1)、最大支持多少内存

[[email protected] ~]# dmidecode|grep -P 'Maximum\s+Capacity'

Maximum Capacity: 2 GB

(2)、Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大

(3)、Linux 查看内存的频率:

(4)、Linux 查看内存的详细信息:

(5)、Linux 查看内存的使用情况

[[email protected] ~]# free -m

total        used        free      shared  buff/cache   available

Mem:           1838         427         669          21         741        1192

Swap:          3999         420        3579

4、查看硬盘信息

(1)、查看挂接的分区状态

[[email protected] ~]# fdisk -l |grep Disk

Disk /dev/xvda: 21.5 GB, 21474836480 bytes, 41943040 sectors

Disk label type: dos

Disk identifier: 0x000c54c1

Disk /dev/xvdb: 32.2 GB, 32212254720 bytes, 62914560 sectors

Disk label type: dos

Disk identifier: 0x3588ad2f

(2)、查看硬盘和分区分布:

(3)、查看硬盘和分区的详细信息

(4)、查看挂接的分区状态

(5)、查看挂接的分区状态

[[email protected] ~]# swapon -s

文件名                类型        大小    已用    权限

/dev/dm-1                                  partition    4095996    430336    -1

(6)、查看硬盘使用情况

(7)、硬盘检测命令smartctl

smartctl -a /dev/sda

5、查看网卡信息

(1)、查看网卡硬件信息

[[email protected] ~]# lspci | grep -i 'eth'

05:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

05:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

(2)、查看系统的所有网络接口

[[email protected] ~]# ifconfig -a

[[email protected] ~]# ip link show

(3)、查看某个网络接口的详细信息,例如eth0的详细参数和指标

[[email protected] ~]# ethtool eth0

Settings for eth0:

Link detected: yes

(4)、查看所有网卡的链路状态

[[email protected] ~]# for i in `seq 0 9`;do ethtool eth${i} | egrep 'eth|Link';done

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth0:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth1:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth2:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth3:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth4:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth5:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth6:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth7:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth8:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth9:

6、列出所有PCI设备信息:

[[email protected] ~]# lspci -tv | more

-[0000:00]-+-00.0  Intel Corporation 440FX - 82441FX PMC [Natoma]

+-01.0  Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]

+-01.1  Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]

+-01.2  Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II]

+-01.3  Intel Corporation 82371AB/EB/MB PIIX4 ACPI

+-02.0  Cirrus Logic GD 5446

+-03.0  Red Hat, Inc. Virtio network device

+-04.0  Red Hat, Inc. Virtio console

+-05.0  Red Hat, Inc. Virtio block device

\-06.0  Red Hat, Inc. Virtio memory balloon

以上就是吾爱编程为大家介绍的关于Linux查看硬件信息命令的全部内容了,希望对大家有所帮助,了解更多相关文章请关注吾爱编程网!

查看服务器芯片组型号,linux查看硬件信息命令相关推荐

  1. 查看服务器大文件,linux 查看服务器大文件

    linux 查看服务器大文件 内容精选 换一换 当创建文件系统后,您需要使用云服务器来挂载该文件系统,以实现多个云服务器共享使用文件系统的目的.本章节以Windows 2012版本操作系统为例进行NF ...

  2. 如何查看服务器数据库型号,如何查看服务器里的数据库

    如何查看服务器里的数据库 内容精选 换一换 为确保华为云关系型数据库服务发挥出最优性能,用户可根据业务需求对用户创建的参数模板中的参数进行调整.您可以修改用户创建的数据库参数模板中的参数值,但不能更改 ...

  3. Linux系统查看华为存储型号,linux 查看服务器存储

    弹性云服务器 ECS 弹性云服务器(Elastic Cloud Server)是一种可随时自助获取.可弹性伸缩的云服务器,帮助用户打造可靠.安全.灵活.高效的应用环境,确保服务持久稳定运行,提升运维效 ...

  4. linux查看服务器温度指令,linux查看服务器温度

    有没有有线网卡,或者串口######你想做个类似于小型机器人这种的?那你可以在它的上面布署一个小的web应用么?######@氪金. @杨同学,这个上面我不想做任何接口,包括网卡和串口,所以所有通迅都 ...

  5. linux查看显卡核心数,linux查看硬件信息,linux查看硬盘信息,linux查看CPU信息,linux查看显卡,硬件型号信息 | 帮助信息-动天数据...

    linux查看硬件信息,linux查看硬盘信息,linux查看CPU信息,linux查看显卡,硬件型号信息 作者:dthost | 时间:2015-09-30 | 8,325 次阅读 linux服务器 ...

  6. linux内核4.14.10查看网卡型号,Linux中查看硬件信息命令

    Linux中查看硬件信息命令 1, 主板信息 .查看主板的序列号 -------------------------------------------------- #使用命令 dmidecode ...

  7. 查看Linux硬件信息命令的使用

    为什么80%的码农都做不了架构师?>>>    查看Linux硬件信息命令的使用 http://www.xxlinux.com/newxxlinux/syste ... 5/315. ...

  8. linux查看显示器名称命令,linux 查看显示器信息Linux下查看硬件信息命令大全

    /proc 虚拟的目录,是系统内存的映射.可直接访问这个目录来获取系统信息.其中也包含下面的信息: 主机CPU信息:cpuinfo 主机DMA通道信息:dma 文件系统信息:filesystems 主 ...

  9. Linux查看CPU、内存等DMI硬件信息

    AntsCode 码蚁编码社区 Linux查看CPU.内存等DMI硬件信息 Linux查看CPU.内存等DMI硬件信息 # 查看 CPU 信息 lscpu# 查看 Memory 信息 sudo dmi ...

最新文章

  1. Wireshark实验HTTP
  2. HDLBits 系列(5)让三元条件运算符(?:)在你的设计中发挥作用
  3. ant接口自动化 junit_Jenkins + Ant自动运行Junit测试
  4. php重定向页面位置,php - PHP重定向到基于页面版本的用户位置(IPAPI),并在会话中记住 - SO中文参考 - www.soinside.com...
  5. sed 插入多行_Linux三剑客之sed
  6. 销售员/学员/讲师系统
  7. 第四十期:2019年度十大Web开发趋势
  8. python图像处理的常用操作
  9. 2017.4.19 多项式输出 思考记录
  10. 做系统ghost步骤图解_两台电脑硬盘对拷图解
  11. MySQL -- 行转列 -- GROUP_CONCAT -- MAX(CASE WHEN THEN)
  12. VB.net WinForm如何写一个分线程进度条
  13. web前端开发技术(第3版)储久良著课后实验
  14. OCR身份证信息批量识别导出excel
  15. pg数据库update + select left join
  16. LVGL+NES|基于lvgl实现nes模拟器(lv_100ask_nes)
  17. JavaWeb-过滤器Filter学习(三)实现用户的自动登录与IP黑名单过滤
  18. amigo幸运字符什么意思_python3基础01数值和字符串(一)
  19. 在自建机房给网站做ICP备案
  20. 服务器端身份证识别技术

热门文章

  1. cd linux破解 没有字库,关于CDLinux的未来和Porteus定制的讨论
  2. CSS实现行高是字号的1.5倍
  3. Naptime 【POJ - 2228】
  4. 为什么有的站点别人能访问但我无法访问
  5. 微信群里的群工具怎么添加群工具微信
  6. WebSplider在线爬虫
  7. 【unity】粒子系统
  8. 知识焦虑遇冷后 知识付费的下一个风口究竟在哪里?
  9. 知识付费时代通过购买网课能缓解焦虑吗
  10. 答辩提问问题php代码,答辩会问到什么问题