查看Linux系统版本

阅读更多

1. 查看内核版本命令:cat /proc/version

Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-26etch2) ([email protected]) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Fri Feb 19 23:40:03 UTC 2010

 

命令:uname -a

 

Linux localdev 2.6.18-6-686 #1 SMP Fri Feb 19 23:40:03 UTC 2010 i686 GNU/Linux

 

2. 查看Linux版本:

1). 进入目录:proc下,输入命令:lsb_release -a

[local/proc]$ lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final

 

2). 命令:cat /etc/issue

CentOS release 5.5 (Final)
Kernel \r on an \m

 

你可能感兴趣的:(CentOS,Unix,Debian)