卓越飞翔博客卓越飞翔博客

卓越飞翔 - 您值得收藏的技术分享站
技术文章11201本站已运行3223

Linux 系统配置信息查询 各种查看Linux配置的方法

查看CPU信息

cat /proc/cpuinfo
在这里插入图片描述
可以看到CPU是Intel® Core™ i7-10870H CPU @ 2.20GHz
16线程的

查看内存大小

free
在这里插入图片描述
可以看到是分配了16298864KB的内存 也就是16G左右
使用top也可以查看
在这里插入图片描述
按Shift + E可以切换显示单位
在这里插入图片描述
在这里插入图片描述

查看系统版本

RetHat系的可以使用,比如CentOS

cat /etc/redhat-release
在这里插入图片描述

这个命令在Ubuntu就失效了
在这里插入图片描述
Ubuntu可以使用
lsb_release -a 或者 cat /etc/issue
在这里插入图片描述

查看系统内核版本

使用
cat /proc/version
在这里插入图片描述
在这里插入图片描述

查看网卡信息

使用lspci会列出全部的pci设备
通过grep过滤出网卡信息

lspci |grep -i 'eth'
在这里插入图片描述
查看主板信息
dmidecode
这个命令会列出主板SMBIOS的各种详细信息,但虚机可能查看不了什么信息
  1. # dmidecode 3.1
  2. Getting SMBIOS data from sysfs.
  3. SMBIOS 2.8 present.
  4. 9 structures occupying 398 bytes.
  5. Table at 0x000F6A20.
  6.  
  7. Handle 0x0000, DMI type 0, 24 bytes
  8. BIOS Information
  9.     Vendor: SeaBIOS
  10.     Version: seabios-1.9.1-qemu-project.org
  11.     Release Date: 04/01/2014
  12.     Address: 0xE8000
  13.     Runtime Size: 96 kB
  14.     ROM Size: 64 kB
  15.     Characteristics:
  16.         BIOS characteristics not supported
  17.         Targeted content distribution is supported
  18.     BIOS Revision: 0.0
  19.  
  20. Handle 0x0100, DMI type 1, 27 bytes
  21. System Information
  22.     Manufacturer: Tencent Cloud
  23.     Product Name: CVM
  24.     Version: 3.0
  25.     Serial Number: e8ccc803-7280-46bf-85c9-f59383af2865
  26.     UUID: E8CCC803-7280-46BF-85C9-F59383AF2865
  27.     Wake-up Type: Power Switch
  28.     SKU Number: Not Specified
  29.     Family: Smdbmds
  30.  
  31. Handle 0x0300, DMI type 3, 21 bytes
  32. Chassis Information
  33.     Manufacturer: Smdbmds
  34.     Type: Other
  35.     Lock: Not Present
  36.     Version: 3.0
  37.     Serial Number: Not Specified
  38.     Asset Tag: Not Specified
  39.     Boot-up State: Safe
  40.     Power Supply State: Safe
  41.     Thermal State: Safe
  42.     Security Status: Unknown
  43.     OEM Information: 0x00000000
  44.     Height: Unspecified
  45.     Number Of Power Cords: Unspecified
  46.     Contained Elements: 0
  47.  
  48. Handle 0x0400, DMI type 4, 42 bytes
  49. Processor Information
  50.     Socket Designation: CPU 0
  51.     Type: Central Processor
  52.     Family: Other
  53.     Manufacturer: Smdbmds
  54.     ID: 55 06 05 00 FF FB 8B 0F
  55.     Version: 3.0
  56.     Voltage: Unknown
  57.     External Clock: Unknown
  58.     Max Speed: 2000 MHz
  59.     Current Speed: 2000 MHz
  60.     Status: Populated, Enabled
  61.     Upgrade: Other
  62.     L1 Cache Handle: Not Provided
  63.     L2 Cache Handle: Not Provided
  64.     L3 Cache Handle: Not Provided
  65.     Serial Number: Not Specified
  66.     Asset Tag: Not Specified
  67.     Part Number: Not Specified
  68.     Core Count: 1
  69.     Core Enabled: 1
  70.     Thread Count: 1
  71.     Characteristics: None
  72.  
  73. Handle 0x1000, DMI type 16, 23 bytes
  74. Physical Memory Array
  75.     Location: Other
  76.     Use: System Memory
  77.     Error Correction Type: Multi-bit ECC
  78.     Maximum Capacity: 2 GB
  79.     Error Information Handle: Not Provided
  80.     Number Of Devices: 1
  81.  
  82. Handle 0x1100, DMI type 17, 40 bytes
  83. Memory Device
  84.     Array Handle: 0x1000
  85.     Error Information Handle: Not Provided
  86.     Total Width: Unknown
  87.     Data Width: Unknown
  88.     Size: 2048 MB
  89.     Form Factor: DIMM
  90.     Set: None
  91.     Locator: DIMM 0
  92.     Bank Locator: Not Specified
  93.     Type: RAM
  94.     Type Detail: Other
  95.     Speed: Unknown
  96.     Manufacturer: Smdbmds
  97.     Serial Number: Not Specified
  98.     Asset Tag: Not Specified
  99.     Part Number: Not Specified
  100.     Rank: Unknown
  101.     Configured Clock Speed: Unknown
  102.     Minimum Voltage: Unknown
  103.     Maximum Voltage: Unknown
  104.     Configured Voltage: Unknown
  105.  
  106. Handle 0x1300, DMI type 19, 31 bytes
  107. Memory Array Mapped Address
  108.     Starting Address: 0x00000000000
  109.     Ending Address: 0x0007FFFFFFF
  110.     Range Size: 2 GB
  111.     Physical Array Handle: 0x1000
  112.     Partition Width: 1
  113.  
  114. Handle 0x2000, DMI type 32, 11 bytes
  115. System Boot Information
  116.     Status: No errors detected
  117.  
  118. Handle 0x7F00, DMI type 127, 4 bytes
  119. End Of Table
卓越飞翔博客
上一篇: 腾讯视频怎么获取vip cookie
下一篇: Linux下查看系统配置
留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏