您可以使用多种方法检查您拥有的Ubuntu(Ubuntu)版本,每种方法都有其优点。有些给你主要版本;其他人会给你所有的小细节。
为什么要找到自己的Ubuntu版本?
你知道你有Ubuntu。为什么版本很重要?
- 就像Windows的不同版本一样,有些东西可以在某些版本的Ubuntu中运行,有些只能在其他版本中运行。您需要知道必须为您的硬件和应用
程序安装适合您的版本的正确驱动程序的版本。(install the proper drivers)
- 它还可以帮助您确定Ubuntu操作系统需要哪些更新。
- 某些版本的Ubuntu最适合用作服务器,而某些版本最适合桌面环境。
- 当向某人寻求有关Ubuntu的帮助时,他们会想知道您拥有的版本。
Ubuntu 有哪些版本?
在版本方面,Windows 和 macOS 很简单。许多 PC 不是Windows 11就是 Windows 10。MacOS(MacOS)的最新版本是Monterey、Big Sur和 Catalina。
Ubuntu版本号基于发布的年份和月份。Ubuntu版本还带有由两个头韵词组成的代号。这是一个形容词和一个动物的名字,所以结果是一个像Bionic Beaver这样的名字。例如,最新的标准Ubuntu版本是 21.10 Impish Indri。(indri 是一种大型狐猴。)
如果这还不够令人困惑,那么随时都有两个当前版本。有临时版本和长期服务 ( LTS ) 版本。对Ubuntu(Ubuntu)临时版本的支持是在发布后的 9 个月内。LTS版本用于实例的稳定性至关重要的地方。它获得五年的标准支持,并且可以在扩展安全维护(Extended Security Maintenance)( ESM ) 下再获得五年。ESM个人使用免费,企业付费订阅。
Canonical Ltd.在开源Linux 内核(Linux kernel)上构建Ubuntu,因此了解Linux内核版本可能很重要。当前的Linux内核版本号可能看起来像 5.15。第一个数字是主要版本,其余数字是次要版本。
把它们放在一起,你可以得到一个Ubuntu版本,比如 22.04 LTS Jammy Jellyfish,Linux内核 5.15。
如何在Windows Linux 子系统(Windows Linux Subsystem)中查找Ubuntu的(Ubuntu)版本(Version)
是的,您可以使用 Microsoft 的Windows Linux 子系统(Windows Linux Subsystem)(WSL)
在Windows中运行(Windows)Ubuntu 。
- 打开适用于 Windows 的 Ubuntu。
- 启动时,Ubuntu在命令行中共享版本和更多信息。示例中的版本是Ubuntu 20.04 LTS。它还显示了用作 5.10.102.1-microsoft-standard-WSL2的(WSL2)Linux内核。注意WSL2部分。用于WSL的(WSL)Ubuntu Linux有两个版本,1 和 2,每个版本都有其优点和缺点。
已经打开了Ubuntu WSL,那行不见了?查看下面有关通过命令行查找Ubuntu版本的部分。(Ubuntu)他们也在WSL中工作。
如何 在命令行(Command Line)中查找Ubuntu的(Ubuntu)版本(Version)
如果您经常使用“ Linux 发行版(Linux distro)”或“ bash ”等术语,那么命令行界面适合您。
- Press Ctrl + Alt + T打开命令行终端。
- 使用(Use)以下任意命令检查Ubuntu版本。每个命令显示关于版本和系统的不同数量的信息。
lsb_release -d
要获得最短的结果,请使用命令 lsb_release -d。lsb_release 命令显示任何Linux发行版的(Linux)Linux 标准库(Linux Standard Base)(lsb) 信息。
lsb_release -a
使用 -a 可以提供有关Ubuntu的完整信息,包括Distributor ID、Description、Release和Codename。奇怪的是,代号(Codename)没有透露完整的代号,即下图所示版本中的
Jammy Jellyfish 。
主机名
hostnamectl 实用程序更改或返回有关主机或主机名的信息。在没有任何选项的情况下使用它只会返回主机名信息。查找操作系统(Operating System)行以获取Ubuntu版本和内核(Kernel)行以获取Linux 内核(Linux kernel)版本。
猫 /etc/问题
concatenate (cat) 命令通常用于将文件连接在一起。当没有任何选项而仅使用文件路径/文件名(etc/issue)时,它会显示问题文件的内容。忽略 l。在这种情况下,这并不重要。
猫 /etc/os-release
就像上面的命令一样,这显示了 os-release 文件的内容。注意版本(Version)行,它显示了整个代号。
unname -r
要仅查看Linux核心版本,请使用命令 uname -r。uname 实用程序提供有关系统的信息,但不提供有关Ubuntu本身的信息。
如何使用 Neofetch 查找 Ubuntu(Ubuntu Using Neofetch)的版本(Version)
Neofetch 是一个 bash 应用程序,它使用ASCII(ASCII)艺术
创造性地显示系统信息。
- 打开 bash 终端并使用命令 sudo apt install neofetch 进行安装。然后输入你的密码,它会找到neofetch。
找到 neofetch 包后,输入 Y 开始安装。
- 安装完成后,输入命令neofetch。
要安装名为Superfetch的类似实用程序(不要与Windows Superfetch混淆),请按照上述相同的过程,将 superfetch 替换为您使用 neofetch 的位置。每个返回的信息略有不同,因此请选择您最需要的信息。
如何使用GUI查找(GUI)Ubuntu的版本(Version)
也许进入终端并使用 bash 和命令行比你想做的要多。
- 选择显示应用程序(Show Applications)图标,然后选择设置(Settings)。
- 它应该打开以显示About屏幕,您可以在其中找到OS Name。如果没有,请滚动到“设置”(Settings)窗口的底部并选择“关于(About)” 。
现在你知道你的 Ubuntu
有十种方法可以找到Ubuntu版本,其中许多提供其他系统信息,你会更好地了解 Ubuntu(know Ubuntu better)。您将能够决定需要哪些更新,找到可以运行的应用程序,并知道何时升级到最新版本的 Ubuntu(upgrade to the newest version of Ubuntu)。
What Version of Ubuntu Do I Have?
You can check what versіon of Ubuntu you have using several methods, and each has its benefits. Somе give you the maјor version; others gіvе you all the little details.
Why Should You Find Your Version of Ubuntu?
You know you’ve got Ubuntu. Why does the version matter?
- Like the different versions of Windows, some things will work in some versions of Ubuntu, and some will work only in others. You need to know what version you have to install the proper drivers for your hardware and apps that will work best on your version.
- It also helps you identify what updates your Ubuntu operating system needs.
- Some versions of Ubuntu are best used as servers, and some are best for desktop environments.
- When asking someone for help with Ubuntu, they’ll want to know what version you have.
What Are the Versions of Ubuntu?
Windows and macOS are straightforward when it comes to versions. Many PCs are either Windows 11 or Windows 10. MacOS’ most recent versions are Monterey, Big Sur, and Catalina.
Ubuntu version numbers are based on the year and month of release. Ubuntu releases also come with code names made of two alliterative words. It’s an adjective and an animal name, so the result is a name like Bionic Beaver. For example, the latest standard Ubuntu release is 21.10 Impish Indri. (An indri is a large species of lemur.)
If that wasn’t confusing enough, there are two current versions at any time. There are the interim release and long-term service (LTS) versions. Support for the interim Ubuntu release is 9-months from release. The LTS version is used where the stability of the instance is critical. It gets five years of standard support and can have another five years under the Extended Security Maintenance (ESM). ESM is free for personal use and is a paid subscription for enterprises.
Canonical Ltd. builds Ubuntu on the open-source Linux kernel, so the Linux kernel version can be important to know. A current Linux kernel version number may look like 5.15. The first number is the major release version, and the remaining numbers are the minor release.
Put them all together, and you could get an Ubuntu version like 22.04 LTS Jammy Jellyfish, Linux kernel 5.15.
How to Find The Version of Ubuntu in the Windows Linux Subsystem
Yes, you can run Ubuntu within Windows with Microsoft’s Windows Linux Subsystem (WSL).
- Open Ubuntu for Windows.
- Upon starting, Ubuntu shares the version and more information in the command line. The version in the example is Ubuntu 20.04 LTS. It also shows the Linux kernel used as 5.10.102.1-microsoft-standard-WSL2. Note the WSL2 part. There are two versions of Ubuntu Linux for WSL, 1 and 2, and each has its pros and cons.
Already opened Ubuntu WSL, and that line is gone? Check the section below on finding the Ubuntu version through the command line. They also work in WSL.
How to Find the Version of Ubuntu in the Command Line
If you regularly use terms like “Linux distro” or “bash,” the command line interface is for you.
- Press Ctrl + Alt + T to open the command line terminal.
- Use any of the following commands to check the Ubuntu version. Each command shows varying amounts of information about the version and the system.
lsb_release -d
For the shortest result, use the command lsb_release -d. The lsb_release command reveals the Linux Standard Base (lsb) information for any Linux distribution.
lsb_release -a
Using the -a gives complete information about Ubuntu, including Distributor ID, Description, Release, and Codename. Oddly, Codename doesn’t reveal the full codename, which is Jammy Jellyfish in the version shown below.
hostnamectl
The hostnamectl utility changes or returns information about the host or hostname. Using it without any options only returns the hostname info. Look for the Operating System line to get the Ubuntu version and the Kernel line for the Linux kernel version.
cat /etc/issue
The concatenate (cat) command is usually used to join files together. When used without any options and just the filepath/filename (etc/issue), it displays the contents of the issue file. Ignore the \n \l. It’s not important in this context.
cat /etc/os-release
Just like the command above, this shows the contents of the os-release file. Note the Version line, which shows the entire codename.
uname -r
To see just the Linux core version, use the command uname -r. The uname utility gives information about the system but not about Ubuntu itself.
How to Find the Version of Ubuntu Using Neofetch
Neofetch is a bash app that displays system information creatively with ASCII art.
- Open the bash terminal and install with the command sudo apt install neofetch. Then enter your password, and it will find the neofetch.
Once the neofetch package has been found, enter Y to begin the installation.
- When the installation is done, enter the command neofetch.
To install a similar utility called Superfetch (not to be confused with Windows Superfetch), follow the same procedure above, substituting superfetch where you used neofetch. Each returns slightly different information, so pick the one with the information you’ll need most often.
How to Find the Version of Ubuntu Using the GUI
Maybe getting into the terminal and working with bash and the command line is more than you want to do.
- Select the Show Applications icon and then select Settings.
- It should open to show the About screen where you can find the OS Name. If not, scroll to the bottom of the Settings window and select About.
Now You Know Your Ubuntu
With ten ways to find the Ubuntu version, many of them providing other system information, you’ll know Ubuntu better. You’ll be able to decide what updates you need, find apps that’ll work on it, and know when it’s time to upgrade to the newest version of Ubuntu.