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
All Real-World Interview questions Roadmap: Interview readiness

More on Linux and shell