Linux查看系统硬件信息

一、查看cpu

[root@localhost ~]# lscpu

[root@localhost ~]#lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    2
座:                 2
NUMA 节点:         1
厂商 ID:           GenuineIntel
CPU 系列:          6
型号:              154
型号名称:        12th Gen Intel(R) Core(TM) i7-12700H
步进:              3
CPU MHz:             2688.003
BogoMIPS:            5376.00
超管理器厂商:  VMware
虚拟化类型:     完全
L1d 缓存:          48K
L1i 缓存:          32K
L2 缓存:           1280K
L3 缓存:           24576K
NUMA 节点0 CPU:    0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good 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 invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 arat umip pku ospke gfni vaes vpclmulqdq movdiri movdir64b md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

二、查看内存

[root@localhost ~]# free -h    加单位友好显示

[root@localhost ~]#free
               总量       使用中        空闲                读/写缓存
              total        used        free      shared  buff/cache   available
Mem:        1863028      820252      418284       55896      624492      835720
Swap:       8388604           0     8388604

[root@localhost ~]#free -h
              total        used        free      shared  buff/cache   available
Mem:           1.8G        800M        408M         54M        609M        816M
Swap:          8.0G          0B        8.0G

注:Swap是当运行内存不足时,将硬盘上的空间当做内存使用

三、查看硬盘

[root@localhost ~]# lsblk

[root@localhost ~]#lsblk
硬盘名                       大小    类型 挂载点
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   80G  0 disk 
├─sda1            8:1    0    5G  0 part /boot
└─sda2            8:2    0   68G  0 part 
  ├─centos-root 253:0    0   60G  0 lvm  /
  └─centos-swap 253:1    0    8G  0 lvm  [SWAP]
sr0              11:0    1  4.4G  0 rom  /run/media/root/CentOS 7 x86_64

四、查看系统架构

[root@localhost ~]# arch

[root@localhost ~]#arch
x86_64

六、查看系统活动状态

[root@localhost ~]# ss  -n     以数字形式显示

                                      -t      tcp协议

                                      -u     udp协议

                                      -a     所有详细信息

                                      -p     端口

五、查看内核

[root@localhost ~]# uname -r     输出内核发行号
                                            -v     输出内核版本

[root@localhost ~]#uname -vr
3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020

六、查看操作系统版本 

[root@localhost ~]# cat /etc/*release

[root@localhost ~]#cat /etc/*release
CentOS Linux release 7.9.2009 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.9.2009 (Core)
CentOS Linux release 7.9.2009 (Core)

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值