查询linux发行版本号方法总结

网友投稿 591 2023-02-14

本站部分文章、图片属于网络上可搜索到的公开信息,均用于学习和交流用途,不能代表睿象云的观点、立场或意见。我们接受网民的监督,如发现任何违法内容或侵犯了您的权益,请第一时间联系小编邮箱jiasou666@gmail.com 处理。

查询linux发行版本号方法总结

1. 发行版本号查询Debian版本查询:

1
2
3
4
5
# cat /etc/debian_version
5.0.7
# cat /etc/issue
Debian GNU/Linux5.0\n\l

Ubuntu版本查询:

1
2
3
4
5
6
7
8
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"
# cat /etc/issue
Ubuntu10.04.4LTS\n\l

CentOS版本查询:

1
2
3
4
#  cat /etc/*-release
CentOS release6.4(Final)
CentOS release6.4(Final)
CentOS release6.4(Final)

RedHat版本查询:

1
2
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release6.0(Santiago)

Fedora版本查询:

1
2
$cat/etc/fedora-release
Fedora release14(Laughlin)

OpenSuSE版本查询:

1
2
3
4
$cat/etc/SuSE-release
openSUSE12.1(x86_64)
VERSION=12.1
CODENAME=Asparagus

2. 查询内核版本

1
2
3
4
5
# uname -r
2.6.32-358.14.1.el6.x86_64
# cat /proc/version
Linux version2.6.32-358.14.1.el6.x86_64(mockbuild@c6b10.bsys.dev.centos.org)(gcc version4.4.720120313(Red Hat4.4.7-3)(GCC))#1 SMP Tue Jul 16 23:51:20 UTC 2013
上一篇:WIN7无线网卡实现路由共享WIFI上网
下一篇:svn + post-commit 实时测试php代码
相关文章

 发表评论

评论列表