Display top 5 processes by memory usage (ps)
ps aux | sort -nr -k 4 | head -5
Lists the top 5 processes consuming the most memory, sorted in descending order.
ps aux | sort -nr -k 4 | head -5
Lists the top 5 processes consuming the most memory, sorted in descending order.