How to view the version and configuration information linux server

Look configuration inux, you may not have windows so intuitive. You can only view one by one.

一:cpu
[root@srv /]# more /proc/cpuinfo | grep "model
name"

[root@srv /]# grep "model name"
/proc/cpuinfo

II: Memory
[root @ srv /] # grep MemTotal / proc / meminfo

Three: Check CPU digits (32 or 64)
[the root @ SRV /] LONG_BIT the getconf #
32
Four: View version of linux
[@ SRV the root /] More # / etc / RedHat-Release
the CentOS
Release. 5 (Final)
[the root @ SRV /] More # / etc / Issue
the CentOS Release. 5 (Final)
Kernel \ R & lt ON AN \ m

Five: Viewing the kernel version
[root @ SRV /] # uname
-r
2.6.18-92.1.18.el5.028stab060.2PAE
[root @ SRV /] # uname -a
Linux srv.eddiechen.cn
2.6.18-92.1. # 1 SMP Tue Jan 18.el5.028stab060.2PAE 13 12:31:30 MSK
2009 i686 i686 i386 the GNU / Linux
six: when viewing zone
[root @ SRV /] # DATE -R
Wed, 25 Feb 2009
02:20:50 +0000
[root @ SRV /] # mv / etc / localtime
/etc/localtime.save
[root @ SRV /] # cp / usr / report this content share / zoneinfo / Asia / on Shanghai
/ etc / localtime
[root @ SRV /] # DATE -R
Wed, 25 Feb 2009
10:24:26 +0800
seven: hostname
[root @ SRV /] # hostname
srv.eddiechen.cn
eight: View selinux case
[root @ SRV /] # sestatus
SELinux
Status: 

  
  
  
  
  
 disabled
nine: network
the IP
[root @ SRV /] # the ifconfig   
| grep 'inet addr:' | grep -v '127.0.0.1' | Cut -d: -f2 | awk '{
Print. 1} $'
207.154.202.216
gateway
[root @srv /] # CAT / etc / sysconfig / Network
NETWORKING = "yes"
GATEWAY = "192.0.2.1"
HOSTNAME = "srv.eddiechen.cn"
dns
[root @ SRV /] # CAT /etc/resolv.conf
nameserver
208.74 .168.131
nameserver 208.74.168.132
nameserver 4.2.2.1
ten: installed packages
[root @ SRV /] # RPM -qa | WC the -l
197
[root @ SRV /] # yum List installed | WC
the -l
198
XI: disk and partition
[root @ SRV /] # df
-h
Filesystem 
  
  
    
Size    
  Used 
  
  
     Avail
Use    
 % 
    Mounted
on
/dev/simfs    
  
  
   10G 
   353M 
  
  
  
   9.7G 
  
    
4%    
 /
[root@srv /]# du -sh
353M
[root@srv /]# du /etc
-sh
4.6M 
   /etc

Guess you like

Origin www.cnblogs.com/QaStudy/p/11514902.html