centOS下实践查询版本/CPU/内存/硬盘容量等硬件信息

时间:2019-05-14 12:06:38   收藏:0   阅读:121
更详细参考:   https://blog.csdn.net/dream_broken/article/details/52883883

 

1.查看内存

 

DirectMap2M:    33544192 kB
[root@diagbot01 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:         32112      11277      20835          0        332       2706
-/+ buffers/cache:       8238      23874
Swap:        16127          1      16126

2.查看磁盘

[root@diagbot01 ~]# df -lh
Filesystem                        Size  Used Avail Use% Mounted on
/dev/mapper/vg_diagbot01-lv_root  992G  538G  405G  58% /
tmpfs                              16G   68K   16G   1% /dev/shm
/dev/sda1                         485M   40M  421M   9% /boot

 

  

原文:https://www.cnblogs.com/kwzblog/p/10861246.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!