'Total amount of memory taken up by users shell

How to output the total amount of memory taken up by users who have at least one running process. It would probably be best to print it via the rss unit listed for ps programs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source