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
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/f
This line displays top 5 processes, sorted by CPU usage.
Want to share or tweet this post? Please use this short URL: http://ozh.in/f
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.