记录实用有价值的内容

命令行查看 Ubuntu 版本号

下面是命令行查看 Ubuntu 版本号

1、使用 lsb_release 实用程序,可以显示有关 Linux 发行版的 LSB(Linux 标准库)信息。它是检查 Ubuntu 版本的首选方法,无论运行的是哪个桌面环境或 Ubuntu 版本,此方法都可以使用。

lsb_release -a

2、使用 cat 命令显示 /etc/issue 文件中包含系统标识文本的内容

cat /etc/issue

3、使用 cat 命令显示 /etc/os-release 文件中信息。/etc/os-release 是一个包含操作系统标识数据的文件,只能在运行 systemd 的较新 Ubuntu 版本上找到。(注:只有拥有 Ubuntu 16.04 或更高版本时,此方法才有效。)

cat /etc/os-release

4、使用 hostnamectl 命令。hostnamectl 是一个允许用户设置主机名的命令,但也可以使用它来检查 Ubuntu 版本。(注:此命令仅适用于 Ubuntu 16.04 或更高版本。)

hostnamectl

如下图所示:

命令行查看 Ubuntu 版本号

完。

上一篇:Linux tar 命令参数组合说明


游客

终于可以评论了

Shanel

https://simkeymortgages.co.uk/privacy-policy/
I'm curious to find out what blog system you're working with? I'm experiencing some small security issues with my latest blog and I'd like to find something more safe. Do you have any recommendations?

Kandi

http://Int-Solutions.net/__media__/js/netsoltrademark.php?d=lebbook.kz%2Fuser%2FAngelScobie780%2F
My relatives all the time say that I am killing my time here at net, however I know I am getting experience every day by reading such good posts.

Christal

http://autofaq.ru/bitrix/rk.php?goto=http://kanoso.ddo.jp/www/yybbs/yybbs.cgi%3Flist=thread
These are actually impressive ideas in concerning blogging. You have touched some good factors here. Any way keep up wrinting.