Verifica versione Linux su CentOS e Ubuntu
In questo breve articolo indichiamo un modo per stabilire su sistema CentOS o Ubuntu la versione utilizzata.
Per quanto riguarda il sistema CentOS รจ possibile verificare in questa maniera
cat /etc/redhat-release
ed avremo
CentOS Linux release 7.6.1810 (Core)
e per avere dettagli sulla versione del kernel
uname -r
3.10.0-957.12.1.el7.x86_64
per ottenere il riepilogo di informazioni
hostnamectl
Static hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: 09087da79af3464dbf46e9521449cf59
Boot ID: b80ef55d08b54f97b1a92bd1b7340d65
Virtualization: kvm
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-957.12.1.el7.x86_64
Architecture: x86-64
per i sistemi Ubuntu avremo
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
per la versione del kernel
uname -r
4.15.0-33-generic
ed il riepilogo avremo
Static hostname: ubuntutest
Icon name: computer-vm
Chassis: vm
Machine ID: fcd29cdbb7b14bcbbe2d21ce35cf81f7
Boot ID: aa6e58a801c94115af122faeb1cd3b7c
Virtualization: oracle
Operating System: Ubuntu 18.04.2 LTS
Kernel: Linux 4.15.0-33-generic
Architecture: x86-64