1.查看系统位数、内核版本
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
2.查看系统版本
[root@localhost ~]# rpm -q centos-release
centos-release-7-4.1708.el7.centos.x86_64
3.磁盘分区和使用情况 #注意默认分区情况下,大分区会被分在/home目录下,装软件的时候要注意装在/home目录下
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on/dev/mapper/centos-root 50G 1.3G 49G 3% /devtmpfs 16G 0 16G 0% /devtmpfs 16G 0 16G 0% /dev/shmtmpfs 16G 233M 16G 2% /runtmpfs 16G 0 16G 0% /sys/fs/cgroup/dev/mapper/centos-home 1.5T 172G 1.4T 12% /home/dev/sda3 497M 171M 326M 35% /boottmpfs 3.2G 0 3.2G 0% /run/user/0
4.查看cpu信息
[root@localhost ~]# cat /proc/cpuinfo | grep name
model name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHzmodel name : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHz5.内存情况
[root@localhost ~]# cat /proc/meminfo | head -4
MemTotal: 32712064 kBMemFree: 211316 kBMemAvailable: 31701148 kBBuffers: 0 kB--------------------- 作者:0x88 来源:CSDN 原文:https://blog.csdn.net/leeshunpeng/article/details/80359140 版权声明:本文为博主原创文章,转载请附上博文链接!