“Linux查看操作系统版本号”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第1行: | 第1行: | ||
+ | <syntaxhighlight lang="shell-session"> | ||
+ | [root@iZj6c09e4pbixx5c6cuwzzZ ~]# lsb_release -a | ||
+ | LSB Version: :core-4.1-amd64:core-4.1-noarch | ||
+ | Distributor ID: CentOS | ||
+ | Description: CentOS Linux release 7.8.2003 (Core) | ||
+ | Release: 7.8.2003 | ||
+ | Codename: Core | ||
+ | </syntaxhighlight><syntaxhighlight lang="shell-session"> | ||
+ | pi@raspberrypi:~ $ lsb_release -a | ||
+ | No LSB modules are available. | ||
+ | Distributor ID: Raspbian | ||
+ | Description: Raspbian GNU/Linux 10 (buster) | ||
+ | Release: 10 | ||
+ | Codename: buster | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | |||
对于redhat<syntaxhighlight lang="console"> | 对于redhat<syntaxhighlight lang="console"> | ||
[root@iZ8vbcjkeqbrdmmbt23vboZ ~]# cat /etc/redhat-release | [root@iZ8vbcjkeqbrdmmbt23vboZ ~]# cat /etc/redhat-release |
2022年8月14日 (日) 20:30的版本
[root@iZj6c09e4pbixx5c6cuwzzZ ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.8.2003 (Core)
Release: 7.8.2003
Codename: Core
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
对于redhat
[root@iZ8vbcjkeqbrdmmbt23vboZ ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@iZ8vbcjkeqbrdmmbt23vboZ ~]# cat /proc/version
Linux version 3.10.0-1062.18.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Mar 17 23:49:17 UTC 2020