You are not logged in.
#!/bin/bash
lines=`tput lines`
((lines-=2))
ps u -eww | sort -rnk 4 | head -$lines
I put that script in /usr/local/bin/proc-by-mem.sh
Quite useful to find out what is consuming most memory. Of course, graphical task viewers like KDE's (but not XFCE's) often do this for you too, as will programs like top and htop.
This will adjust itself to your terminal size, too.
Offline
top
F
n
<return>
yeah. I just use top..
o.0
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Yes, as I noted, you can do that. But: slower, overkill, more keys, and can't be piped.
Offline