1.查看linux版本
sunny@ubuntu:~$cat/etc/issue
Ubuntu11.04nl
2.查看内核版本
1)sunny@ubuntu:~$cat/proc/version
Linuxversion2.6.38-13-generic(buildd@rothera)(gccversion4.5.2(Ubuntu/Linaro4.5.2-8ubuntu4))#57-UbuntuSMPMonMar518:10:14UTC2012
2)uname
sunny@ubuntu:~$uname-a
Linuxubuntu2.6.38-13-generic#57-UbuntuSMPMonMar518:10:14UTC2012i686i686i386GNU/Linux
[-------------------------------------------------------------------------------
-alinux 查看内核版本,--allprintallinformation,inthefollowingorder,查看全部信息
exceptomit-pand-iifunknown:
-s,--kernel-nameprintthekernelname查看内核名子
-n,--nodenameprintthenetworknodehostname
-rlinux更改ip地址,--kernel-releaseprintthekernelrelease查看内核发行版本
-v,--kernel-versionprintthekernelversion查看内核版本
-m,--machineprintthemachinehardwarename
-p,--processorprinttheprocessortypeor"unknown"
-i,--hardware-platformprintthehardwareplatformor"unknown"
-o,--operating-systemprinttheoperatingsystem查看操作
--helpdisplaythishelpandexit
--versionoutputversioninformationandexit
--------------------------------------------------------------------------------------]
3.查看系统位数
1)sunny@ubuntu:~$getconfWORD_BIT
32
2)sunny@ubuntu:~$file/bin/bash
/bin/bash:ELF32-bitLSBexecutable,Intel80386linux 查看内核版本,version1(SYSV)puppy linux,dynamicallylinked(usessharedlibs),forGNU/Linux2.6.15,stripped
4.查看gcc版本
sunny@ubuntu:~$gcc--version
gcc(Ubuntu/Linaro4.5.2-8ubuntu4)4.5.2
本文原创地址://gulass.cn/lzknhbbmrytl.html编辑:刘遄,审核员:暂无