Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17770

1-liner for process cpu & mem tracking?

$
0
0

hey everyone,

I was just wondering if anyone would be so kind as to post/re-post a 1-liner I recently came across and has somehow vanished... it was one where someone asked how they could cron a script that checked if firefox went above a certain level of resource abuse they could auto-kill it.

well, in that same thread, someone had posted a beautiful (IMO) 1-liner that listed all processes based on cpu and memory usage... I'd really appreciate it if anyone here could help me with it :)

tl;dr anyone has a 1-liner to list memory and cpu usage of ALL processes running on a box?

submitted by daknight
[link][8 comments]

Viewing all articles
Browse latest Browse all 17770

Trending Articles