Centos 查看系统信息



1.查看CPU型号(8个逻辑CPU)
[[root@mail ~]# cat /proc/cpuinfo |grep "name" |cut -f2 -d: |uniq -c
8 Intel(R) Xeon(R) CPU           E5506  @ 2.13GHz
2.查看物理CPU个数(两个4核CPU)
[root@mail ~]# cat /proc/cpuinfo | grep "physical"| sort |uniq -c
     8 address sizes    : 40 bits physical, 48 bits virtual
4 physical id    : 0
     4 physical id    : 1

3.查看CPU运行在多少位模式下面
[root@mail ~]# getconf LONG_BIT
64
4.下面的结果大于0,说明支持64位操作系统
[root@mail ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
8
5.查看系统物理内存的大小
[root@mail ~]# free
            total       used       free     shared    buffers     cached
Mem:      8168144   7387980     780164          0     689856    4014308
-/+ buffers/cache:    2683816    5484328
Swap:      4192924      24424    4168500
6.查看内存详细信息
[root@mail ~]# cat /proc/cpuinfo
7.查看服务器安装的是哪个发行版本
[root@mail ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)
8.查看OS的版本是64位的还是32位的
[root@mail ~]# uname -a
Linux mail 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
9.查看服务器的硬件信息
[root@DB145]# dmidecode |grep Vendor     处理器厂商
   Vendor: Dell Inc.
[root@DB145]# dmidecode |grep Product    服务器型号
   Product Name: PowerEdge R610
   Product Name: 0RP59R

10.查看硬盘信息

# df


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值