“Linux查看操作系统版本号”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
| (未显示同一用户的6个中间版本) | |||
| 第1行: | 第1行: | ||
| − | + | === 最通用 === | |
| − | cat /etc/redhat-release | + | <syntaxhighlight lang="shell-session"> |
| + | root@15cc59636d4e:/apache-zookeeper-3.8.0-bin# cat /etc/os-release | ||
| + | PRETTY_NAME="Ubuntu 22.04.1 LTS" | ||
| + | NAME="Ubuntu" | ||
| + | VERSION_ID="22.04" | ||
| + | VERSION="22.04.1 LTS (Jammy Jellyfish)" | ||
| + | VERSION_CODENAME=jammy | ||
| + | ID=ubuntu | ||
| + | ID_LIKE=debian | ||
| + | HOME_URL="https://www.ubuntu.com/" | ||
| + | SUPPORT_URL="https://help.ubuntu.com/" | ||
| + | BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" | ||
| + | PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" | ||
| + | UBUNTU_CODENAME=jammy | ||
| + | </syntaxhighlight><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> | ||
| + | |||
| + | <syntaxhighlight lang="console"> | ||
| + | [root@iZ8vbcjkeqbrdmmbt23vboZ ~]# cat /etc/redhat-release | ||
| + | CentOS Linux release 7.7.1908 (Core) | ||
| + | </syntaxhighlight><syntaxhighlight lang="console"> | ||
| + | [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 | ||
| + | </syntaxhighlight><syntaxhighlight lang="shell-session"> | ||
| + | root@15cc59636d4e:/apache-zookeeper-3.8.0-bin# cat /etc/issue | ||
| + | Ubuntu 22.04.1 LTS \n \l | ||
| + | root@15cc59636d4e:/apache-zookeeper-3.8.0-bin# | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2022年8月16日 (二) 13:45的最新版本
最通用
root@15cc59636d4e:/apache-zookeeper-3.8.0-bin# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[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
[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
root@15cc59636d4e:/apache-zookeeper-3.8.0-bin# cat /etc/issue
Ubuntu 22.04.1 LTS \n \l
root@15cc59636d4e:/apache-zookeeper-3.8.0-bin#