How do you find which process is using the most CPU right now?
BeginnerConceptLinux and shell
Answer
Run top (press P to sort by CPU) or htop, or use a one-shot command.
ps -eo pid,comm,%cpu --sort=-%cpu | head -5
Run top (press P to sort by CPU) or htop, or use a one-shot command.
ps -eo pid,comm,%cpu --sort=-%cpu | head -5