Maybe you can take use of this

Relax in this forum - no rules except obscenity & profanity, and guests can post!
Post Reply
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

code: Select all

#!/bin/bash
lines=`tput lines`
((lines-=2))
ps u -e | 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 often do this for you too. This will adjust itself to your terminal size, too.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members