查看cpu 内存 存储 命令

CPUS=`cat /proc/cpuinfo |grep "processor"|sort -u|wc -l`
echo "逻辑cpu : $CPUS"

FREES=`free -h |grep Mem |awk '{print $2}'`
echo "内存规格: $FREES"

CP=`df -h |grep root |awk '{print $2}'`
CP=`lsblk|grep disk |awk '{print $4}'`
echo "磁盘规格: $CP"
posted @ 2021-01-06 15:44  鸣昊  阅读(232)  评论(0编辑  收藏  举报