How to Check Ubuntu Version in Command Line
What version of Ubuntu Linux are you using? How to check the Ubuntu version from the command line?
In Ubuntu Linux, you can check the Ubuntu version from the command line using the
To check the Ubuntu version, open the command line and Type:
You will get output something similar to the following:
Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal
As you can see I am using Ubuntu 20.04 LTS focal.
/etc/issue files also contain the Ubuntu version:
cat /etc/issue Ubuntu 20.04.2 LTS \n \l
Check Ubuntu Kernel Version
lsb_release does not show the kernel version. To get the kernel version in Ubuntu, use the