一,查看内核版本
1. uname -a
[[email protected] ~]# uname -a Linux root 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 14:46:51 UTC 2015 i686 i686 i686 GNU/Linux
2. cat /proc/version
Linux version 4.2.0-16-generic ([email protected]) (gcc version 5.2.1 20151003 (Ubuntu 5.2.1-21ubuntu2) ) #19-Ubuntu SMP Thu Oct 8 14:46:51 UTC 2015
二,查看系统版本
1.lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.10 Release: 15.10 Codename: wily
2.cat /etc/issue
Ubuntu 15.10 \n \l