首页 > 编程知识 正文

ubuntu查看系统版本命令,ubuntu查看版本号

时间:2023-05-06 03:24:50 阅读:39807 作者:3113

第一个

命令:在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

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。