第一个
命令:在cat /proc/version中显示
proc目录中记录的当前系统中执行的各种数据、version中记录的版本信息可以直接在cat中看到,也可以看到gcc版本信息。
第二类
命令:用uname -a表示
上图显示了自己的内核版本,可显示的系统为64位(x86_64 );
uname -m输出: x86_64
第三个
命令:用lsb_release -a显示
# LSB _ release--帮助
Usage: lsb_release [options]
Options:
-h,--helpshowthishelpmessageandexit
-v,--versionshowlsbmodulesthissystemsupports
-i,--id显示分发器id
-d,- -描述性描述性描述性描述性描述性描述
r,--releaseshowreleasenumberofthisdistribution
-c,--codenameshowcodenameofthisdistribution
a,--allshowalloftheaboveinformation
s,--shortshowrequestedinformationinshortformat
#lsb_release -r
3:12.04版
使用此命令可以验证我的版本是12.04;
第四个
cat /etc/issue
输出: Ubuntu 12.04 LTS n l