如何查看Ubuntu的版本?
使用lsb-release查看Linux的版本
使用文件lsb-release或者/etc/os-release 也可以查看Linux的版本:
$ cat /etc/*release
使用hostnamectl命令查看Ubuntu操作系统版本
另外一种方法是使用hostnamectl命令:
$ hostnamectl
输出:
Static hostname: onitroad-asus.onitroad.com
Icon name: computer-laptop
Chassis: laptop
Machine ID: 5676e0534ca04d58a94e207dd7617dc3
Boot ID: 4b33025d11fa4b2fa932d735961412fd
Operating System: Ubuntu 18.04.1 LTS
Kernel: Linux 4.19.2
Architecture: x86-64
如何查看Ubuntu Linux的版本
使用lsb_release命令:
$ lsb_release -a
输出示例:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic
日期:2019-11-20 08:53:27 来源:oir作者:oir
