我尝试查找了CentOS Stream的版本

我在Sakura Cloud(IaaS)上开始使用CentOS stream 8,所以我查看了版本信息。

/等等/中/心得发布

$ cat /etc/centos-release
CentOS Stream release 8

内核版本

$ uname -r
4.18.0-257.el8.x86_64

请提供uname -morsv的输出结果。

$ uname -morsv
Linux 4.18.0-257.el8.x86_64 #1 SMP Thu Dec 3 22:16:23 UTC 2020 x86_64 GNU/Linux

操作系统发行版配置文件

$ cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

操作内容相同

$ cat /etc/system-release-cpe
cpe:/o:centos:centos:8

主机名称控制

$ hostnamectl
   Static hostname: localhost.localdomain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: (省略)
           Boot ID: (省略)
    Virtualization: kvm
  Operating System: CentOS Stream 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-257.el8.x86_64
      Architecture: x86-64

请参考

查找 CentOS Linux 版本的命令或文件。