Problem scenario
You want to find the total RAM a Linux server has. You do not want the number to be in kilobytes. You want human-readable output. What do you do?
Solution
Run this command:
free -g | grep Mem | awk ‘{print $2 ” gigabytes of RAM total (sum of in use and available combined)”}’
If the amount of GB is less than 0.5,
…
Continue reading “How Do You Find the Amount of RAM Your Linux Server Has in GB?”