Search This Blog

Tuesday, April 26, 2016

Useful Process-Related Linux Commands

Amount of free RAM: 
free -t | grep "cache:" | awk '{ print $4}'

Top 5 processes consuming most CPU in their lifetimes:
ps aux | sort -rk 3,3 | head -n 5
The output is not the same as 'top'. The 'top' command outputs instantaneous CPU usage.
Post a Comment