检查 ubuntu 版本_如何检查Ubuntu版本–快速简便的方法

检查 ubuntu 版本

In this tutorial, we will go over the easiest methods to check Ubuntu version from the terminal. You can use any of the methods below depending on what you need. The outputs that the commands provide are very basic, but at the end of the tutorial, we’ve shown some APT packages that give the version information, in a really beautiful ASCII format.

在本教程中,我们将介绍从终端检查Ubuntu版本的最简单方法。 您可以根据需要使用以下任何方法。 这些命令提供的输出是非常基本的,但是在本教程的最后,我们展示了一些APT软件包,它们以非常漂亮的ASCII格式提供了版本信息。

包含Ubuntu版本详细信息的文件 (Files That Contain Ubuntu Version Details)

There are a few configuration files that contain details of the version and the release information of the Linux distribution you’re on. So, if you’re looking for files that can provide you with the required details, keep reading.

有一些配置文件,其中包含版本详细信息以及您所使用的Linux发行版的发行信息。 因此,如果您正在寻找可以为您提供所需详细信息的文件,请继续阅读。

1. LSB发布文件 (1. LSB-Release File)

LSB stands for Linux Standard Base. The lsb-release file is located in /etc/lsb-release directory. We can run the cat command to output the contents of this file.

LSB代表Linux Standard Base。 lsb-release文件位于/ etc / lsb-release目录中。 我们可以运行cat命令来输出该文件的内容。


root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值