How Do You Find Which Process Is Taking How Much Cpu in Linux?
Contents

How do you find which process is taking how much CPU?

The ps command command displays every process ( -e ) with a user-defined format ( -o pcpu ). First field is pcpu (cpu utilization). It is sorted in reverse order to display top 10 CPU eating process.

Which process is taking high CPU in Linux?

2) How to Find High CPU Consumption Process in Linux Using the ps Command

  • ps : This is a command.
  • -e : Select all processes.
  • -o : To customize a output format.
  • –sort=-%cpu : Sort the ouput based on CPU usage.
  • head : To display first 10 lines of the output.
  • PID : Unique ID of the process.
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest