无需二次开发,Cloud Alert 快速衔接您的IT事件和钉钉通知
641
2023-02-14
查询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 |
发表评论
评论列表