I QQ group also has a lot of technical documents, I hope to provide you with some help (non-technical not to add).
QQ Group: 281442983 (click the link to join the group: http://jq.qq.com/?_wv=1027&k=29LoD19)
Linux under the view of configuration, can not be so intuitive windows. You can only view one at a.
One: CPU
[Email protected]/]# More/proc/cpuinfo | grep "model
Name
[[email protected]/]# grep "model name"
/proc/cpuinfo
Two: Memory
[[email protected]/]# grep memtotal/proc/meminfo
Three: View the number of CPU bits (+ or 64)
[Email protected]/]# getconf long_bit
32
Four: View Linux versions
[Email protected]/]# more/etc/redhat-release
Centos
Release 5 (Final)
[Email protected]/]# more/etc/issue
CentOS Release 5 (Final)
Kernel \ r on an \m
V: View kernel version
[Email protected]/]# uname
-R
2.6.18-92.1.18.el5.028stab060.2pae
[Email protected]/]# uname-a
Linux srv.eddiechen.cn
2.6.18-92.1.18.el5.028stab060.2pae #1 SMP Tue Jan 12:31:30 MSK
i686 i686 i386 Gnu/linux
VI: View time zone
[Email protected]/]# date-r
Wed, Feb 2009
02:20:50 +0000
[Email protected]/]# Mv/etc/localtime
/etc/localtime.save
[Email protected]/]# Cp/usr/share/zoneinfo/asia/shanghai
/etc/localtime
[Email protected]/]# date-r
Wed, Feb 2009
10:24:26 +0800
Seven: Host name
[Email protected]/]# hostname
srv.eddiechen.cn
Eight: View selinux status
[Email protected]/]# Sestatus
SELinux
Status
Disabled
Nine: Network
Ip
[Email protected]/]# ifconfig
| grep ' inet addr: ' | Grep-v ' 127.0.0.1 ' | Cut-d:-f2 | awk ' {
print '} '
207.154.202.216
Gateway
[Email protected]/]# cat/etc/sysconfig/network
networking= "Yes"
Gateway= "192.0.2.1"
Hostname= "srv.eddiechen.cn"
Dns
[Email protected]/]# cat/etc/resolv.conf
NameServer
208.74.168.131
NameServer 208.74.168.132
NameServer 4.2.2.1
Ten: Packages that have already been installed
[Email protected]/]# Rpm-qa | Wc-l
197
[email protected]/]# Yum List installed | Wc
-L
198
11: Disks and partitions
[[email protected]/]# DF
-H
Filesystem
Size
Used
Avail
Use
%
Mounted
On
/dev/simfs
10G
353M
9.7G
4%
/
[Email protected]/]# Du-sh
353M
[Email protected]/]# du/etc
-sh
4.6M
/etc
I QQ group also has a lot of technical documents, I hope to provide you with some help (non-technical not to add).
QQ Group: 281442983 (click the link to join the group: http://jq.qq.com/?_wv=1027&k=29LoD19)
How to view version and configuration information for a Linux server