#!/bin/bash


memTotal_b=`free -b |grep Mem |awk '{print $2}'`
memFree_b=`free -b |grep Mem |awk '{print $4}'`
memBuffer_b=`free -b |grep Mem |awk '{print $6}'`
memCache_b=`free -b |grep Mem |awk '{print $7}'`

memTotal_m=`free -m |grep Mem |awk '{print $2}'`
memFree_m=`free -m |grep Mem |awk '{print $4}'`
memBuffer_m=`free -m |grep Mem |awk '{print $6}'`
memCache_m=`free -m |grep Mem |awk '{print $7}'`
CPUPer=`top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}'`
hdd=`df -lh | awk '{if ($6 == "/") { print $5 }}' | head -1 | cut -d'%' -f1`
uptime=`uptime`
ProcessCnt=`ps -A | wc -l`
memUsed_b=$(($memTotal_b-$memFree_b-$memBuffer_b-$memCache_b))
memUsed_m=$(($memTotal_m-$memFree_m-$memBuffer_m-$memCache_m))

memUsedPrc=$((($memUsed_b*100)/$memTotal_b))

echo "1-رم: به صورت پیشفرض: $memTotal_m MB"
echo "🔹🔹🔹🔹🔹🔹🔹🔹🔹"
echo "2-مقدار استفاده شده از رم: $memUsed_m مگابایت - $memUsedPrc% استفاده شده!"
echo "🔹🔹🔹🔹🔹🔹🔹🔹🔹"
echo "3-مقدار کل : $memTotal_b"
echo "🔹🔹🔹🔹🔹🔹🔹🔹🔹"
echo '4-مقدار استفاده شده از پردازنده : '"$CPUPer"'%'
echo "🔹🔹🔹🔹🔹🔹🔹🔹🔹"
echo '5-مقدار فضا : '"$hdd"'%'
echo "🔹🔹🔹🔹🔹🔹🔹🔹🔹"
echo '6-تعداد پردازش : '"$ProcessCnt"
echo "🔹🔹🔹🔹🔹🔹🔹🔹🔹"
echo '7-آپ تایم : '"$uptime"
echo "»»Version 3.1««"
echo "»»@JoveTG««"

Create For Show ServerInfo..Jove V3.1
Create For Show ServerInfo..Jove V3.1