首页 > 技术文章 > linux 查看系统和内核版本

swbzmx 2016-06-22 08:57 原文

一,查看内核版本
1. uname -a

[root@localhost ~]# 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 (buildd@lgw01-22) 
(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

 

推荐阅读