+1 vote
in Operating Systems by (13.6k points)
How can I check the version of the kernel of Ubuntu?

1 Answer

0 votes
by (21.4k points)

You can use one of the following commands to check the Linux kernel version. It will work on Ubuntu too.

C1

root@myhost:~# hostnamectl
   Static hostname: myhost.domain.com
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f5c59e5f0c914f828772bc116653e324
           Boot ID: a5592793cfb74b6496232dd44894e6a3
    Virtualization: kvm
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-5-amd64
      Architecture: x86-64

C2

root@myhost:~# uname -r
4.19.0-5-amd64

C3

root@myhost:~# cat /proc/version
Linux version 4.19.0-5-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08)

...