How to get ubuntu version?

by alysson_lynch , in category: General Help , 7 months ago

How to get ubuntu version?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by cecelia , 2 months 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.