Display the top processes sorted by memory and CPU usage (ps, sort, head)
ps -eo pid,comm,%mem,%cpu --sort=-%mem | head
Shows a list of running processes, sorted in descending order based on memory consumption, also displaying CPU usage.
ps -eo pid,comm,%mem,%cpu --sort=-%mem | head
Shows a list of running processes, sorted in descending order based on memory consumption, also displaying CPU usage.