分享几个linux系统版本的查看命令


查看linux系统版本的命令 

有如下命令可供参考: 
  1. # lsb_release -a  
  2. LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch  
  3. Distributor ID: CentOS  
  4. Description:    CentOS release 5.4 (Final)  
  5. Release:        5.4  
  6. Codename:       Final  
此命令适用于所有的linux,包括Redhat、SuSE、Debian、Centos等发行版。 

  1. root@MyMail ~ # uname  
  2. Linux  
  3. root@MyMail ~ # uname -r  
  4. 2.6.18-164.el5  
  5. [root@localhost ~]# uname -a  
  6. Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux  

相关内容