六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 96|回复: 0

查看linux版本以及 判断 suse redhat

[复制链接]

升级  12%

16

主题

16

主题

16

主题

秀才

Rank: 2

积分
68
 楼主| 发表于 2013-1-16 02:13:12 | 显示全部楼层 |阅读模式
查看版本方法大概有三种:
[root@q1test01 ~]# cat /proc/versionLinux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005

uname -aLinux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

[root@q1test01 ~]# uname -r2.6.9-22.ELsmp

判断suse radhat
[root@3.5.5Biz-46 ~]# [root@q1test01 ~]# lsb_release -a   LSB Version: :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-   ia32:graphics-3.0-noarch   Distributor ID: RedHatEnterpriseAS   Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)   Release: 4   Codename: NahantUpdate2

SUSE
[root@q1test01 ~]# cat /etc/issue

REDHAT
[root@q1test01 ~]# cat /etc/redhat-release
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表