Как узнать версию CentOS
Нужно выполнить одну из команд
cat /proc/version
ответ содержит версию ядра и gcc
Linux version 3.10.0-1160.25.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed Apr 28 21:49:45 UTC 2021
hostnamectl
выдаст тажке Machine ID и Boot ID
Static hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Machine ID: 2ab58c274b51074080ac3b1d584eadb9 Boot ID: ed3903e51b5949d68ecfc46d659b31eb Virtualization: kvm Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.25.1.el7.x86_64 Architecture: x86-64
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.9.2009 (Core) Release: 7.9.2009 Codename: Core