Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1352025
  • 博文数量: 1334
  • 博客积分: 645
  • 博客等级: 上士
  • 技术积分: 5762
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-25 16:56
文章分类

全部博文(1334)

文章存档

2014年(108)

2013年(1059)

2012年(169)

分类: LINUX

2013-01-18 19:38:25

原文地址:如何查看RedHat版本号 作者:futter521

root@webserver ~]# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release:        5.2
Codename:       Tikanga

 

[root@webserver ~]# cat /etc/redhat-release

 

[root@webserver ~]# uname -r 

[root@webserver ~]# uname -a

 

查看的是redhat的版本
more /etc/redhat-release
more /etc/issue

不仅仅是linux的版本
uname -a   
uname -r
lsb_release -a
more /proc/version


ps:不仅仅是linux的版本好强啊
Bios:
dmidecode |more          --其中能看到服务器的制造商等信息

cpu :
more /proc/cpuinfo      
more /proc/cpuinfo |grep "physical "|sort -u            --cpu数量
more /proc/cpuinfo |grep "physical "|grep 0|wc -l    --单个cpu核心数量
more /proc/cpuinfo |head -10                                  --cpu的info,类型和主频、cache等

mem:
free               --内存和swap
more /proc/meminfo
top

hd:
fdisk -l
parted
more /etc/scsi/scsi             --scsi接口的情况下
阅读(207) | 评论(0) | 转发(0) |
0

上一篇:在redhat中安装eclipse

下一篇:tar命令

给主人留下些什么吧!~~