Ubuntu——View the system version


foreword

Most novice Ubuntu users have been using the ubuntu system after installing the dual system, but they don’t know how to check the Ubuntu version. Today, I will sort out the method of the ubuntu system version for you, hoping to help you.


1. Ubuntu naming and version

1.1 Ubuntu naming rules:

Every time Ubuntu releases a version, the first two digits are the last two digits of the year when it was released, and the last two digits are the month of release, separated by an English decimal point. For example: ubantu18.04 is April 18.
LTS means long-term support version, which means that ubuntu will maintain and update this version within a certain period of time.

1.2 Ubuntu version:

Ubuntu releases a non-LTS version every six months (half a year), an LTS version every two years, and each LTS has a 5-year maintenance period.

  1. If the main version number is an odd number, it indicates that this version is a short-term support version, mainly for testing some new features, testing bugs, etc.
  2. When the main version number is an even number, it indicates that this version is a long-term support board, and generally has a maintenance period of five years.

For example: ubuntu16.04 LTS is a long-term maintenance version, while ubuntu 17.04 is a new feature version. You can generally use the LTS version.

2. Version view command

2.1 Use lsb_release -a to view

Open a terminal and type:

lsb_release -a

result:

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

You can see that my Ubuntu system is version 20.04LTS.

2.2 Use cat /proc/version to view

Open a terminal and type:

cat /proc/version

result:

Linux version 5.15.0-71-generic (buildd@lcy02-amd64-111) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023

This command can know the Linux version number, gcc version and Ubuntu version.

2.3 Use uname -a to view

Open a terminal and type:

uname -a

result:

Linux gzx-OMEN-by-HP-Laptop-17-ck0xxx 5.15.0-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

This command can display the Ubantu version number and the Linux kernel version, such as x86_64 64 cores.


Summarize

This article will give you a look at how to check the Ubuntu system version. I hope it can help you, especially students who need to match the Ubuntu version when downloading the ROS version.
Friends who like it, move your little hands to follow, I will regularly share some of my knowledge summaries and experiences, thank you!

Guess you like

Origin blog.csdn.net/guozhengxian123/article/details/130684764