Created
January 3, 2017 18:31
-
-
Save rendicott/6b697ee48e5cef79ce1328a234e70def to your computer and use it in GitHub Desktop.
bash one-liner to search for ps aux pid by name and get memory usage
This file contains hidden or 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
pid=$(ps aux | grep [s]nmpd | awk -F' ' '{print $2}') && pmap -x $pid | grep total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment