How to find out the Rocky version

You need to run one of the commands

cat /proc/version

the answer contains the kernel version and gcc

Linux version 4.18.0-305.el8.x86_64 (mockbuild@ord1-prod-x86build004.svc.aws.rockylinux.org) (gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)) #1 SMP Thu May 27 16:46:28 UTC 2021

hostnamectl

will also show the Machine ID and Boot ID

Static hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Machine ID: db29eb1c7218434ba695a7a2872153ec Boot ID: e80bf73a73c54f338932b05f2d691b02 Virtualization: oracle Operating System: Rocky Linux 8.4 (Green Obsidian) CPE OS Name: cpe:/o:rocky:rocky:8.4:GA Kernel: Linux 4.18.0-305.el8.x86_64 Architecture: x86-64

cat /etc/issue

the answer is in the spirit of whether you are on sid or not

lsb_release -a

the answer is in the spirit of whether you are on sid or not

\S Kernel \r on an \m

Article author: Andrei Olegovich