Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92138496
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-04-19 17:00:28

作者:lg   来自:

几种查看linux版本信息的方法:
1. uname -a
2. cat /proc/version
3. cat /etc/issue
4. lsb_release -a

详解 lsb_release -a

登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:
[y.com@localhost ~]# lsb_release -a
LSB Version:  :core-3.0-ia32:core-3.0-noarch: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
[y.com@localhost ~]#
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
阅读(366) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~