+3 votes
in Operating Systems by (71.8k points)
How can I check the version of the kernel of Ubuntu?

1 Answer

+1 vote
by (348k points)
selected by
 
Best answer

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)

Related questions

+4 votes
1 answer
+4 votes
1 answer
+3 votes
1 answer

...