Bash Collection – Script to get the real amount of used memory of an application
The following script was written by me to be able to get the really used amount of memory for one single application.
Since it isn’t that easy to get the used memory through “top” or “ps” or similar tools, this may be helpful for somebody.
The output is in megabytes and looks like this:
~ $ memused.sh mono
Just save the following script as “/usr/local/bin/memused.sh” and make it executable (chmod 755 /usr/local/bin/memused.sh):
If you also have some useful scripts, please don’t hesitate to share them with us!
Just contact email@example.com and attach your script with a small description what it does.