分类: LINUX
2010-12-01 16:22:10
一、 查看系統版本:
lsb_release -a
[root@erp-db etc]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Release: 5.3
Codename: Tikanga
[root@erp-db etc]#
二、 查看內核版本:
cat /proc/version
[root@erp-db etc]# cat /proc/version
Linux
version 2.6.18-128.el5 (mockbuild@hs20-bc1-7.build.redhat.com) (gcc
version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Dec 17 11:41:38
EST 2008
[root@erp-db etc]#
三、 查看操作系統位數
getconf LONG_BIT
[root@erp-db etc]# getconf LONG_BIT
64
[root@erp-db etc]#
四、查看CPU
cat /proc/cpu | grep -i 'model name'
[root@erp-db etc]# cat /proc/cpuinfo | grep -i 'model name'
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
model name : Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
[root@erp-db etc]#
cat /proc/cpuinfo 查看CPU更多信息
五、 查看內存
cat /proc/meminfo
[root@erp-db etc]# cat /proc/meminfochinaunix网友2010-12-02 14:30:47
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com