浏览次数:2732 关键词 ( 信息 操作系统 内存 版本 )
经常要查看Linux服务器的CPU,内存信息以及操作系统版本等信息,总结一下常用的命令,以便以后查阅。1.查看CPU型号(8个逻辑CPU)[[root@mail ~]# cat /proc/cpuinfo |grep "name" |cut -f2 -d: |uniq -c 8 Intel(R) Xeon(R) CPU E5506 @ 2.13GHz2.查看物理CPU个数(两个4核CPU)[root@mail ~]# cat /proc/cpuinfo | grep "physical"| sort |uniq -c 8 address sizes : 40 bits physical, 48 bits virtual4 physical id : 0 4 physical id : 13.查看CPU运行在多少位模式下面[root@mail ~]# getconf LONG_BIT644.下面的结果大于0,说明支持64位操作系统[root@mail ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l85.查看系统物理内存的大小[root@mail ~]# free total used free shared buffers cachedMem: 8168144 7387980 780164 0 689856 4014308-/+ buffers/cache: 2683816 5484328Swap: 4192924 24424 41685006.查看内存详细信息[root@mail ~]# cat /proc/cpuinfo7.查看服务器安装的是哪个发行版本[root@mail ~]# cat /etc/redhat-releaseCentOS release 5.5 (Final)8.查看OS的版本是64位的还是32位的[root@mail ~]# uname -aLinux mail 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux9.查看服务器的硬件信息[root@DB145]# dmidecode |grep Vendor 处理器厂商 Vendor: Dell Inc.[root@DB145]# dmidecode |grep Product 服务器型号 Product Name: PowerEdge R610 Product Name: 0RP59R
本文出自 “朴实的追梦者” 博客,请务必保留此出处http://sfzhang88.blog.51cto.com/4995876/875972