What is the fastest way?
uname -r 6.8.0-49-generic
That is the running kernel release. It is the version the vendor ships with its own patch level, not the plain upstream number. Ubuntu 24.04 uses a 6.8 based kernel, Debian 12 a 6.1 kernel, Debian 13 a 6.12 kernel, and the RHEL 9 family a 5.14 kernel with years of backported fixes. The base number tells you little about how current the security fixes are; the suffix does.
How do I read the version string?
| Example | Parts |
|---|---|
6.8.0-49-generic | Upstream 6.8.0, Ubuntu ABI 49, generic flavor |
6.1.0-28-amd64 | Upstream 6.1, Debian ABI 28, x86_64 build |
6.12.9+deb13-arm64 | Debian 13 build for Arm |
5.14.0-503.15.1.el9_5.x86_64 | Base 5.14, Red Hat build 503.15.1, EL 9.5, x86_64 |
On the RHEL family the long build number after the dash rises with each update, while 5.14 stays the same for the life of the release. That is normal.
What other commands show the kernel?
cat /proc/version hostnamectl | grep -i kernel uname -srvm
/proc/version adds the compiler and build date. hostnamectl shows the kernel next to the OS name, which is a tidy summary when you open a ticket. More uname flags are in uname command.
Which kernels are installed?
dpkg -l 'linux-image-*' | awk '/^ii/{print $2, $3}' # Ubuntu, Debian
rpm -q kernel kernel-core | sort -V # AlmaLinux, Rocky, CentOS Stream
ls -1 /boot/vmlinuz-*
Distros keep two or three kernels so you can boot an older one if a new one misbehaves. On Ubuntu, sudo apt autoremove --purge cleans up old ones. The RHEL family keeps three by default, set by installonly_limit in /etc/dnf/dnf.conf.
Is a reboot pending?
running=$(uname -r) newest=$(ls -1 /boot/vmlinuz-* | sed 's#.*/vmlinuz-##' | sort -V | tail -1) [ "$running" = "$newest" ] && echo "up to date" || echo "reboot to load $newest"
The comparison is simple but reliable across distros. Ubuntu and Debian also create /var/run/reboot-required, and on the RHEL family dnf needs-restarting -r gives a direct answer. Plan the reboot for a quiet hour; Linux uptime command covers checking afterwards that everything came back.
Which kernel will boot next?
sudo grubby --default-kernel # RHEL family grep -E '^GRUB_DEFAULT' /etc/default/grub # Debian, Ubuntu
By default GRUB boots the newest installed kernel. If you pinned an older one for a driver or module, the newest will not load until you change this back. Without a remote console you cannot pick a kernel from the GRUB menu at boot, so set the default from the running system before rebooting.
Does the Arm line use a different kernel?
The version numbers match the x86 builds of the same distro, but the package targets arm64 or aarch64. On A1 and the other Arm models, uname -m prints aarch64. Kernel modules from third parties must be built for that architecture; most open source ones in the distro archives already are.
Should I install a newer upstream kernel?
Usually not. Distro kernels get security fixes and have been tested with the rest of the system. A newer kernel can help with very new hardware or a specific feature, and Ubuntu offers HWE kernels for that. Building your own is possible but leaves you to track security fixes yourself. If you need the newest kernel features, pick a distro with a newer base, such as Debian 13, when you install from the panel.
Which kernel modules are loaded?
lsmod | sort -k2 -n -r | head -15 modinfo -F version nvme ls /lib/modules/$(uname -r)/kernel/drivers/net/ethernet/
lsmod lists loaded modules with their size and use count. modinfo shows details of one module, including the version and the parameters it accepts. The last line shows which network drivers ship with the running kernel. Third party modules built with DKMS must be rebuilt for each new kernel; dkms status shows whether that happened before you reboot.
How do I check the kernel on FreeBSD?
Run freebsd-version -ku. It prints the installed kernel and the userland version, which can differ after an update until you reboot. uname -r works too and shows the running kernel, such as 14.2-RELEASE-p1. Patches arrive with freebsd-update fetch install, and a reboot loads the new kernel.
x86 and Arm Machines, Same Distros
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| A1 | Ampere Altra Q80-30 | 80 / 80 | 256 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $252.11 | $252.11 (1 month) |
| A2 | Ampere Altra Q80-30 | 80 / 80 | 256 GB DDR4 | 2x 4 TB NVMe | 2x 25 Gbps | $277.57 | $277.57 (1 month) |
Keep Reading
uname command
Use uname to print the kernel name, release, version, machine architecture and hostname, and use it safely in scripts that run on x86 and Arm.
OpenLinux uptime command
Check how long a Linux server has run with uptime, see the boot time, reboot history and when a reboot is due for kernel updates.
OpenDebian
Debian 13 or 12 for servers that should change as little as possible between upgrades, on any machine we sell.
OpenAlmaLinux
AlmaLinux 9 for hosting panels and software written for the Red Hat family, with no subscription to buy.
OpenFAQ
Quick Answers
uname -r shows the running kernel release.
RHEL family releases keep one base version and backport fixes. The build number after the dash shows how current it is.
Compare uname -r with the newest file in /boot, or use reboot-required or dnf needs-restarting -r.
Yes. apt autoremove --purge on Debian and Ubuntu; dnf keeps a set number automatically.
The version matches the distro, but the build is aarch64 and uname -m shows that.