mirror of
https://github.com/notwa/rc
synced 2024-11-14 17:19:02 -08:00
6 lines
143 B
Text
6 lines
143 B
Text
|
#!/bin/sh
|
||
|
ps axco rss,pid,command | awk '
|
||
|
NR>1&&$1>0{t+=$1;printf("%8.2fM %7d %s\n",$1/1024,$2,$3)}
|
||
|
END{printf("%8.2fM\n",t/1024)}
|
||
|
' | sort -n
|