The following command help to sort list of process running in linux machine.
ps -eo pmem,pid,args | sort -k 1 -n -r | less
Explanation:
pmem -> list the memory occupied by the process
pid -> process ID
args -> process
Tuesday, July 8, 2008
Subscribe to:
Post Comments (Atom)
We can also use the following command
ReplyDeleteps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS
this will sort every process by memory usage.
-Priya