Skip to main content

Posts

Showing posts from April 24, 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.