openSUSE下如何查看Linux版本
2个回答
展开全部
3) linux-zopi:~ # uname -r
2.6.37.1-1.2-desktop
2. 查看Linux版本:1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,如:
linux-zopi:~ # lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: openSUSE 11.4 (i586)
Release: 11.4
另外在Redhat Linux中还有如下查询命令:4) 登录到linux执行rpm -q redhat-release,如:[root@q1test01 ~]# rpm -q redhat-release redhat-release-4AS-3 注:这种方式下可看到一个所谓的release号,比如上边的例子是3 这个release号和实际的版本之间存在一定的对应关系,如下: redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3 redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4 redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4 redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1 redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2 redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3 redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4
推荐于2020-01-29 · 知道合伙人互联网行家
关注
展开全部
①SUSE版本Linux用lsb_release -a命令即可列出版本信息
[root@localhost ~]# lsb_release -a②此命令cat /etc/issue也适用于所有的Linux发行版
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:openSUSE
Description: openSUSE 13.1 (Final)
Release: 13.1 #版本号
Codename: Fina
#这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。
[root@localhost ~]# cat /etc/issue
openSUSE 13.1(Final)
Kernel r on an m
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询