How to display the RAM consumption of each process?¶
Use the following command to get information about the RAM consumption of each process in megabytes (MB):
ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort