ubuntu系统版本查询命令方法
2023-09-02 本文已影响0人
zlchen
cat /proc/version 查看
$ cat /proc/version
Linux version 5.4.0-113-generic (buildd@lcy02-amd64-067) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022
uname -a 查看
$ uname -a
Linux fnnehdxds6lztku 5.4.0-113-generic #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a 查看
$ lsb_release -a
LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
hostnamectl 查看
$ hostnamectl
Static hostname: fnnehdxds6lztku
Icon name: computer-vm
Chassis: vm
Machine ID: 20220524174107033216151293301385
Boot ID: 2eedfe0be6cc45c49ab3761e766c1f62
Virtualization: kvm
Operating System: Ubuntu 20.04.4 LTS
Kernel: Linux 5.4.0-113-generic
Architecture: x86-64
cat /etc/issue 查看
$ cat /etc/issue
Ubuntu 20.04.4 LTS \n \l