
Or # ps -e -o pid,user,args|grep $username To list top 10 Memory consuming processes with user # ps -e -o pmem,pid,user,args|sort -k1 -nr|head -10įind out the top 10 memory consuming process # ps -auxf|sort -nr -k4|head -10įind out every process running under a user # ps -U user-name -u user-name u 🙂 To list top 10 CPU usage processes with user # ps -e -o pcpu,pid,user,args|sort -k1 -nr|head -10įind out top 10 CPU consuming process # ps -auxf|sort -nr -k3|head -10

It’s simply a static output of current resource usage in the server. You can use the grep command to separate users. “ ps command” and “ top command” have a lot of options, here I am explaining some useful command combinations to find the resource(cpu, memory…) usages of users in the server.
