Real Time Projects In Shell Script
Aug 16, 2023 · 4 min read · Monitoring The Free RAM Space In a Linux Server #!/bin/bash FREE_MEM=$(free -mt | grep Total | awk '{print $4}') TH=100 if [[ $FREE_MEM -lt $TH ]] then echo "Memory Warning" else echo "Free Memory is $FREE_MEM M" fi Output - -> He...
Join discussion