查詢linux的核心版本和發行版本

std1984發表於2012-12-01
 
兩種核心版本查詢方式:
1)cat /proc/version
Linux version 2.6.18-238.el5 () (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Thu Jan 13 16:24:47 EST 2011
 
2) uname -a
Linux hq 2.6.18-238.el5 #1 SMP Thu Jan 13 16:24:47 EST 2011 i686 i686 i386 GNU/Linux
 
 
三種發行版本查詢方式:
1)lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4                                                                         .0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.6 (Final)
Release:        5.6
Codename:       Final
2) cat /etc/issue
CentOS release 5.6 (Final)
Kernel \r on an \m
3) cat /etc/***_release
CentOS release 5.6 (Final)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16582684/viewspace-750356/,如需轉載,請註明出處,否則將追究法律責任。

相關文章