1.使用 cat /proc/version 命令查看
Linux version 3.8.0-19-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #30-Ubuntu SMP Wed May 1 16:36:13 UTC 2013
注:proc目录下记录的当前系统运行的各种数据,version记录的版本信息直接可以通过cat查看到。
2.使用 uname -a命令查看
Linux guan 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:36:13 UTC 2013 i686 i686 i686 GNU/Linux
注:uname是输出一组系统信息,包括内核版本、硬件平台信息、操作系统名称等内容。
3.使用lsb_release -a命令查看
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
Linux version 3.8.0-19-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #30-Ubuntu SMP Wed May 1 16:36:13 UTC 2013
注:proc目录下记录的当前系统运行的各种数据,version记录的版本信息直接可以通过cat查看到。
2.使用 uname -a命令查看
Linux guan 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:36:13 UTC 2013 i686 i686 i686 GNU/Linux
注:uname是输出一组系统信息,包括内核版本、硬件平台信息、操作系统名称等内容。
3.使用lsb_release -a命令查看
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
注:借用lsb的版本信息查看,哪怕是没有安装LSB模块也能够看到Linux版
转自:http://blog.youkuaiyun.com/sflsgfs/article/details/16805349
本文介绍了三种在Linux系统中查看版本信息的方法:通过cat/proc/version命令、uname-a命令及lsb_release-a命令,并解释了这些命令输出的具体含义。
1万+

被折叠的 条评论
为什么被折叠?



