查看linux机器硬件配置
1 查看 cpu:
[root@localhost ~]# grep "model name" /proc/cpuinfo model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
2 查看cpu位数:
[root@localhost ~]# getconf LONG_BIT 64
3 查看内存:
[root@localhost ~]# grep MemTotal /proc/meminfo MemTotal: 65956340 kB
[root@chinadaas109 ~]# cat /proc/meminfo MemTotal: 132089436 kB MemFree: 53439820 kB Buffers: 702300 kB Cached: 61056300 kB SwapCached: 44716 kB Active: 17207024 kB Inactive: 59399112 kB Active(anon): 9954564 kB Inactive(anon): 4893312 kB Active(file): 7252460 kB
4 查看当前linux版本:
[root@localhost ~]# cat /etc/redhat-release CentOS release 6.4 (Final)
5 查看硬盘总量和使用情况
[root@localhost ~]# df -hl Filesystem Size Used Avail Use% Mounted on /dev/sda3 5.4T 733M 5.1T 1% / tmpfs 32G 0 32G 0% /dev/shm /dev/sda1 194M 26M 159M 14% /boot
6 查看安装的软件包:
[root@localhost ~]# rpm -qa setup-2.8.14-20.el6.noarch basesystem-10.0-4.el6.noarch ncurses-base-5.7-3.20090208.el6.x86_64 glibc-common-2.12-1.107.el6.x86_64 glibc-2.12-1.107.el6.x86_64 bash-4.1.2-14.el6.x86_64 ......
7 查看linux编码格式:
[18511893257@network ~]$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=