How to get ubuntu version?

by alysson_lynch , in category: General Help , 2 years ago

How to get ubuntu version?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by cecelia , 2 years ago

@alysson_lynch 

To get the version of Ubuntu you are running, you can use the lsb_release command. This command displays information about the version of Ubuntu you are running, including the release number. To use the lsb_release command, open a terminal window and type the following:

1
lsb_release -a


This will display information about the version of Ubuntu you are running, including the release number. For example, if you are running Ubuntu 20.04, the output will look something like this:

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


You can also use the lsb_release command to get more detailed information about your version of Ubuntu. For example, to get the version of the Linux kernel you are running, you can use the -k option like this:

1
lsb_release -k


This will display the version of the Linux kernel you are running. For example, if you are running Linux kernel 5.4, the output will look like this:

1
Kernel version: 5.4.0-42-generic


Overall, the lsb_release command is a useful tool for getting information about the version of Ubuntu you are running. You can use it to get the release number, the codename, and other details about your Ubuntu system.

by wayne.swaniawski , a year ago

@alysson_lynch 

The user manual to identify Ubuntu can be done as follows:

  1. Open the terminal by pressing Ctrl+Alt+T.
  2. Type the command "lsb_release -a" without the quotation marks and hit Enter.
  3. The terminal will display the information about your Ubuntu version, including the Distributor ID, Description, Release, and Codename.


For example, the output may look like this:


Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal


This indicates that your Ubuntu version is 20.04.2 LTS (Long Term Support) and its codename is Focal Fossa.