免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3735 | 回复: 3
打印 上一主题 下一主题

查看各种Linux系统版本信息的Shell命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-11 14:29 |只看该作者 |倒序浏览
几种查看Linux版本信息的方法:
1. uname -a
2. cat /proc/version
3. cat /etc/issue
4. lsb_release -a
详解 lsb_release -a
登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:
1. [root@3.5.5Biz-46 ~]# lsb_release -a
2. LSB Version: 1.3
3. Distributor ID: RedHatEnterpriseAS
4. Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
5. Release: 4
6. Codename: NahantUpdate1
7. [root@3.5.5Biz-46 ~]#
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

论坛徽章:
0
2 [报告]
发表于 2008-11-12 13:58 |只看该作者
en  自己试了下 确实不错帮你顶下

论坛徽章:
0
3 [报告]
发表于 2008-11-12 14:31 |只看该作者
原来只知道前两个,谢谢。

论坛徽章:
0
4 [报告]
发表于 2008-11-13 00:14 |只看该作者
iusfox@geniusfox-desktop:~$ lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 8.10
Release:        8.10
Codename:        intrepid
geniusfox@geniusfox-desktop:~$

用俺的系统数据顶一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP