This script will check for the memory space usages for the filesystem.
#!/bin/bash ################################################## # Author: java2bigdata # # Description: check the memory space in unix # ################################################## # Total memory space details echo "Memory Space Details" free -t -m | grep "Total" | awk '{ print "Total Memory space : "$2 " MB"; print "Used Memory Space : "$3" MB"; print "Free Memory : "$4" MB"; }' echo "Swap memory Details" free -t -m | grep "Swap" | awk '{ print "Total Swap space : "$2 " MB"; print "Used Swap Space : "$3" MB"; print "Free Swap : "$4" MB"; }'
Delete Files Older Than 2 years on Linux Click here
Shell Scripting Routines Click here
No comments:
Post a Comment