- uname -a : 查看操作系统的发行版号和操作系统版本
Command: uname -a Result: Linux SERVER 5.19.0-35-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 3 18:36:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- uname -v : 查看版本号
Command: uname -v Result: #36-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 3 18:36:56 UTC 2023
- lsb_release -a : 查看发行版本信息
Command: lsb_release -a Result: Distributor ID: Ubuntu Description: Ubuntu 22.10 Release: 22.10 Codename: kinetic
- cat /etc/issue : 查看Linux版本信息及类型
Command: cat /etc/issue Result: Ubuntu 22.10 \n \l
- cat /proc/version : 查看Linux内核信息
Command: cat /proc/version Result: Linux version 5.19.0-35-generic (buildd@lcy02-amd64-014) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #36-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 3 18:36:56 UTC 2023