How to get ubuntu version?

by buster.gaylord , in category: General Help , 2 years ago

How to get ubuntu version?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by georgiana.senger , 2 years 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.

Member

by kaley , a year ago

@buster.gaylord 

To get the Ubuntu version, 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 command lsb_release -a and press Enter.


This command will display information about your Ubuntu version, including the release number and codename. For example, the output might look like:

1
2
3
4
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic


In this example, the Ubuntu version is 18.04.


Alternatively, you can use the command cat /etc/os-release to view the contents of the /etc/os-release file. This file contains information about the operating system, including the version. Running this command will display output similar to:

1
2
3
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
...


In this example, the Ubuntu version is also 18.04.