How to get ubuntu version?

by buster.gaylord , in category: General Help , a year ago

How to get ubuntu version?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by georgiana.senger , 9 months ago

@buster.gaylord 

To find out which version of Ubuntu you are running, follow these steps:

  1. Open a terminal window by pressing Ctrl + Alt + T or by searching for "Terminal" in the dash.
  2. In the terminal, enter the following command: lsb_release -a


This will display the version of Ubuntu that you are running, along with other information about your system.


For example, if you are running Ubuntu 20.04, the output will be something like this:

1
2
3
4
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal


Alternatively, you can use the cat command to view the contents of the /etc/os-release file, which also contains information about the version of Ubuntu that you are running. To do this, enter the following command in the terminal: cat /etc/os-release


This will display the contents of the /etc/os-release file, which should include a line that looks like this: VERSION="20.04 LTS (Focal Fossa)". The number after VERSION= is the version of Ubuntu that you are running.