1.查看linux版本

cat/etc/issue

Ubuntu11.04nl

2.查看内核版本

1)cat/proc/version

Linuxversion2.6.38-13-generic(buildd@rothera)(gccversion4.5.2(Ubuntu/Linaro4.5.2-8ubuntu4))#57-UbuntuSMPMonMar518:10:14UTC2012

2)uname

uname-a

Linuxubuntu2.6.38-13-generic#57-UbuntuSMPMonMar518:10:14UTC2012i686i686i386GNU/Linux

[-------------------------------------------------------------------------------

-a,--allprintallinformation,inthefollowingorder,查看全部信息

exceptomit-pand-iifunknown:

-slinux查看内核版本,--kernel-nameprintthekernelname查看内核名子

-n,--nodenameprintthenetworknodehostname

-r,--kernel-releaseprintthekernelrelease查看内核发行版本

-vlinux怎么查看系统版本,--kernel-versionprintthekernelversion查看内核版本

-m,--machineprintthemachinehardwarename

-p,--processorprinttheprocessortypeor"unknown"

-i,--hardware-platformprintthehardwareplatformor"unknown"

-o,--operating-systemprinttheoperatingsystem查看操作

--helpdisplaythishelpandexit

--versionoutputversioninformationandexit

--------------------------------------------------------------------------------------]3.查看系统位数

1)getconfWORD_BIT

32

2)file/bin/bash

/bin/bash:ELF32-bitLSBexecutablelinux查看内核版本linux怎么查看系统版本,Intel80386,version1(SYSV),dynamicallylinked(usessharedlibs),forGNU/Linux2.6.15,stripped

4.查看gcc版本

gcc--version

gcc(Ubuntu/Linaro4.5.2-8ubuntu4)4.5.2

本文原创地址://lrxjmw.cn/lzknhbbmrytn.html编辑:刘遄,审核员:暂无