学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

查看Ubuntu版本方法

(1)cat /etc/issue
  返回 Ubuntu 11.10 \n \l
(2)sudo lsb_release -a
  返回
  No LSB modules are available.
  Distributor ID:    Ubuntu
  Description:    Ubuntu 11.10
  Release:    11.10
  Codename:    oneiric

查看内核版本方法
(1)cat /proc/version
  返回 Linux version 3.0.0-12-generic (buildd@vernadsky) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011
(2)uname -a
  返回 Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 athlon i386 GNU/Linux


posted on 2012-02-07 11:31  Jerry.Kwan  阅读(307)  评论(0编辑  收藏  举报