linux版本查看linux应用程序
[教学]Linux下查看版本号的命令Linux下查看版本号的命令转Linux下查看版本号的命令1查看内核版本命令catprocversionuname-auname-rcatetcissuemanuname2查看linux版本抄录如下1登录到服务器执行lsb_release-a即可列出所有版本信息例如[root355Biz-46]lsb_release-aLSBVersion13DistributorIDRedHatEnterpriseASDescrīptionRedHatEnterpriseLinuxASrelease4NahantUpdate1Release4CodenameNahantUpdate1[root355Biz-46]这个命令适用于所有的linux包括RedhatSuSEDebian等发行版2登录到linux执行catetcredhat-release例如如下[root355Biz-46]catetcredhat-releaseRedHatEnterpriseLinuxASrelease4NahantUpdate1[root355Biz-46]这种方式下可以直接看到具体的版本号比如AS4Update13登录到linux执行rpm-qredhat-release例如如下[root355Biz-46]rpm-qredhat-releaseredhat-release-4AS-24[root355Biz-46]这种方式下可看到一个所谓的release号比如上边的例子是24这个release号和实际的版本之间存在一定的对应关系如下redhat-release-3AS-1-RedhatEnterpriseLinuxAS3redhat-release-3AS-74-RedhatEnterpriseLinuxAS3Update4redhat-release-4AS-2-RedhatEnterpriseLinuxAS4redhat-release-4AS-24-RedhatEnterpriseLinuxAS4Update1redhat-release-4AS-3-RedhatEnterpriseLinuxAS4Update2redhat-release-4AS-41-RedhatEnterpriseLinuxAS4Update3redhat-release-4AS-55-RedhatEnterpriseLinuxAS4Update4注意第23两种方法只对RedhatLinux有效LastloginTueAug51423172008from1014070229scsctaishanhomescsctaishanhomescsctaishanhomescsc-shsccommandnotfoundsctaishanhomescuname-aLinuxtaishan269-4214ELsmp1SMPWedSep27183119EDT2006i686i686i386GNULinuxsctaishanhomesccatprocversionLinuxversion269-4214ELsmpbrewbuilderhs20-bc2-3buildredhatcomgccversion34620060404RedHat346-31SMPWedSep27183119EDT2006sctaishanhomescuname-rcatetcissueunameinvalidoption--cTryuname--helpformoreinformationsctaishanhomesccatetcissueNOTICETOUSERSThiscomputersystemistheprivatepropertyofNokiawhetherindividualcorporateorgovernmentItisforauthorizeduseonlyUsersauthorizedorunauthorizedhavenoexplicitorimplicitexpectationofprivacyAnyorallusesofthissystemandallfilesonthissystemmaybeinterceptedmonitoredrecordedcopiedauditedinspectedanddisclosedtoyouremployertoauthorizedsitegovernmentandlawenforcementpersonnelaswellasauthorizedofficialsofgovernmentagenciesbothdomesticandforeignByusingthissystemtheuserconsentstosuchinterceptionmonitoringrecordingcopyingauditinginspectionanddisclosureatthediscretionofsuchpersonnelorofficialsUnauthorizedorimproperuseofthissystemmayresultincivilandcriminalpenaltiesandadministrativeordisciplinaryactionasappropriateBycontinuingtousethissystemyouindicateyourawarenessofandconsenttothesetermsandconditionsofuseLOGOFFIMMEDIATELYifyoudonotagreetotheconditionsstatedinthiswarningsctaishanhomescuname-r269-4214ELsmpsctaishanhomesclsb_release-a-shlsb_releasecommandnotfoundsctaishanhomescsu-Passwordsuincorrectpasswordsctaishanhomescsu-Password[roottaishan]lsb_release-a-bashlsb_releasecommandnotfound[roottaishan]lsb_release-a-bashlsb_releasecommandnotfound[roottaishan]catetcredhat-releaseRedHatEnterpriseLinuxASrelease4NahantUpdate4[roottaishan]rpm-qredhat-releaseredhat-release-4AS-55[roottaishan]linux版本查看linux内存管理