Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1334673
  • 博文数量: 284
  • 博客积分: 3251
  • 博客等级: 中校
  • 技术积分: 3046
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-26 17:23
文章分类

全部博文(284)

文章存档

2019年(2)

2018年(5)

2015年(19)

2014年(13)

2013年(10)

2012年(235)

分类: LINUX

2012-05-04 07:43:34

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接口的情况下
阅读(6165) | 评论(0) | 转发(1) |
0

上一篇:tar命令

下一篇:在redhat中安装eclipse

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