How to display the real-time memory usage in Linux
Written on
July 18, 2009 at 3:24 pm by
mkyong
Often times, we need to monitor our Linux server memory usage, “watch” is a handy command to display the real-time memory usage in Linux.
NAME
watch – execute a program periodically, showing output fullscreen
We can issue the following command to keep track the real time memory usage in Linux.
watch -d free -m
The memory usage will update every 2 seconds, and the different will be highlighted.

