码迷,mamicode.com
首页 > 系统相关 > 详细

linux 查看系统和内核版本

时间:2016-06-22 09:18:49      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

一,查看内核版本
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

 

linux 查看系统和内核版本

标签:

原文地址:http://www.cnblogs.com/swbzmx/p/5605814.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!