了解Linux系统相关信息
-
# dmidecode | grep Product (服务器型号)
-
Product Name: Lenovo WQ R510 G6
-
Product Name: DPX1066RK
-
# cat /proc/cpuinfo | grep name | cut -f2 -d: (说明有8个cpu?)
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-
# cat /proc/cpuinfo | grep physical (原来都是4核的,说明只是2个cpu)
-
physical id : 0
-
physical id : 0
-
physical id : 0
-
physical id : 0
-
physical id : 1
-
physical id : 1
-
physical id : 1
-
physical id : 1
-
# getconf LONG_BIT (而且是32位的cpu)
-
32
-
# free -m
-
total used free shared buffers cached
-
Mem: 8105 7974 131 0 69 6989
-
-/+ buffers/cache: 916 7189
-
Swap: 6094 46 6048
-
# uname -a
-
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
-
# cat /etc/issue | grep Linux
-
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
-
# rpm -qa | wc -l
-
sestatus
-
912
-
# sestatus
-
SELinux status: disabled
-
hostname
-
# hostname
-
euis1
-
# domainname
-
(none)
-
# uptime
-
14:42:48 up 5 days, 1:55, 5 users, load average: 0.02, 0.06, 0.01
-
# cat /etc/hosts | grep -v #
-
127.0.0.1 localhost.localdomain localhost
-
192.168.41.191 euis1
-
192.168.41.192 euis2
-
# ifconfig | grep inet addr: | grep -v 127.0.0.1
-
inet addr:192.168.41.191 Bcast:192.168.47.255 Mask:255.255.248.0
-
# cat /etc/sysconfig/network
-
NETWORKING=yes
-
HOSTNAME=euis1
-
GATEWAY=192.168.40.1
-
# cat /etc/resolv.conf
-
nameserver 202.106.196.113
-
nameserver 202.106.0.20
-
# env | egrep LANG|LC
-
LC_ALL=en_US
-
LANG=en_US
-
# fdisk -l | grep Disk
-
Disk /dev/sda: 145.9 GB, 145999527936 bytes
-
# df -ha
-
Filesystem Size Used Avail Use% Mounted on
-
/dev/sda6 20G 3.1G 16G 17% /
-
none 0 0 0 - /proc
-
none 0 0 0 - /sys
-
none 0 0 0 - /dev/pts
-
usbfs 0 0 0 - /proc/bus/usb
-
/dev/sda2 190M 12M 169M 7% /boot
-
none 4.0G 0 4.0G 0% /dev/shm
-
/dev/sda3 20G 906M 18G 5% /home
-
/dev/sda5 20G 4.7G 15G 26% /orahome
-
/dev/sda8 4.0G 41M 3.7G 2% /tmp
-
/dev/sda10 61G 16G 43G 28% /u01
-
/dev/sda9 4.0G 143M 3.6G 4% /var
-
none 0 0 0 - /proc/sys/fs/binfmt_misc
(责任编辑:IT) |