CentOS下如何查询系统信息?

乐清SEO_开发应用_Centos_ 乐清SEO2021-04-25 转载自:

输入"uname -a ",可显示电脑以及操作系统的相关信息。 
输入"cat /proc/version",显示正在运行的内核版本。 
输入"cat /etc/issue", 显示的是发行版本信息 
lsb_release -a (适用于所有的linux,包括Redhat、SuSE、Debian等发行版,但是在debian下要安装lsb)

SZV1000123502:~ # uname -a  
Linux SZV1000123502 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux  
SZV1000123502:~ # cat /proc/version   
Linux version 3.0.76-0.11-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990)  
SZV1000123502:~ # cat /etc/issue  
  
Welcome to SUSE Linux Enterprise Server 11 SP3  (x86_64) - Kernel \r (\l).  
  
  
SZV1000123502:~ # lsb_release -a  
LSB Version: n/a  
Distributor ID: SUSE LINUX  
Description: SUSE Linux Enterprise Server 11 (x86_64)  
Release: 11  
Codename: n/a  
SZV1000123502:~ #