Pages

Thursday, February 6, 2014

[Linux] Check the memory size in human readable format

Just a quick backup.

sudo lshw -businfo -C memory | awk '/System\ Memory$/{print $2}'


Alternative: Show the number of GB (only the number)
free -g | awk '/Mem:/{print $2}'

No comments:

Post a Comment