首页 > 文章列表 > 如何查看当前Linux系统的版本

如何查看当前Linux系统的版本

linux
387 2023-05-19

如何查看当前Linux系统的版本



注:proc目录下记录的当前系统运行的各种数据,version记录的版本信息可以通过cat查看到。

1. 使用命令:cat /proc/version

proc目录下记录的当前系统运行的各种数据,version记录的版本信息可以直接通过cat查看到,还可以看到gcc版本信息。

2. 使用命令:uname -a

如上图显示自己的内核版本,并且可以查看系统是32位(i386);

$uname-m

i38612

3. 使用命令:lsb_release -a

#lsb_release--help

Usage:lsb_release[options]



Options:

-h,--helpshowthishelpmessageandexit-v,--versionshowLSBmodulesthissystemsupports-i,--idshowdistributorID-d,--descriptionshowdescriptionofthisdistribution-r,--releaseshowreleasenumberofthisdistribution-c,--codenameshowcodenameofthisdistribution-a,--allshowalloftheaboveinformation-s,--shortshowrequestedinformationinshortformat123456789101112

4. 使用命令:cat /etc/issue