This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
phymem=$(free -m|awk '/^Mem:/{print $2}') | |
echo "Total physical memory on this machine is $phymem MB" | |
if [ -n "$1" ] | |
then | |
phymem=$1 | |
echo "Total physical memory set to $phymem MB" | |
fi |