“Linux查看操作系统版本号”的版本间的差异

来自姬鸿昌的知识库
跳到导航 跳到搜索
第23行: 第23行:
 
[root@iZ8vbcjkeqbrdmmbt23vboZ ~]# cat /proc/version
 
[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
 
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# 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@15cc59636d4e:/apache-zookeeper-3.8.0-bin#
 
</syntaxhighlight>
 
</syntaxhighlight>

2022年8月16日 (二) 13:15的版本

[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


对于 Red Hat

[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# 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@15cc59636d4e:/apache-zookeeper-3.8.0-bin#