This line displays top 5 processes, sorted by CPU usage.
-
echo " PID USER %CPU COMMAND" && ps -eo pid,user,pcpu,args --sort pcpu | tail -n 5 | sort -r
Related posts
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/f
Metastuff
No Comment yet
No comments yet. You could get "First Post!" which would bring you fame, luxury cars and chicks.
This entry "Top 5 processes" was posted on 20/12/2003 at 10:29 pm and is tagged with Bash, Code, Linux
Watch this discussion : Comments RSS 2.0.