一、查看Ubuntu版本号
方法一
[email protected]:~# cat /etc/issue Ubuntu 14.04.1 LTS \n \l
方法二
[email protected]:~# sudo lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty
方法三
[email protected]:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
二、查看linux版本
方法一
[email protected]:~# cat /proc/version Linux version 3.13.0-45-generic ([email protected]) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015
方法二
[email protected]:~# uname -a Linux wiki 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
仅查看内核版本:
[email protected]:~# uname -r 3.13.0-45-generic
推荐链接
时间: 2024-12-26 01:11:59