Ubuntu Ubuntu Tutorials

Tutorial To Find Top CPU Consuming Processes In Linux

Insight: Tutorial To Find Top CPU Consuming Processes In Linux

It is one of the important task of system admin to figure out the top consuming processes in system. There are various tools and command to figure out the top CPU consuming processes. Let’s see some of the popular command to figure out the top CPU processes.

Tutorial To Find Top CPU Consuming Processes In Linux

1) Use ‘htop’ command to find the top processes in Linux.

We can use the htop command to figure out the processes consuming high CPU resources. Open your terminal and run the following command to find out top CPU consuming process.

Tutorial To Find Top CPU Consuming Processes In Linux

If htop is not installed in your system, then run the following command to install htop in Ubuntu:

sudo apt install htop

Now, run the following command to run htop:

htop

2) Finding Out Top CPU Consuming Processes Using ps Command.

Run ps command in your terminal to find top cpu consuming processes in Linux. Open your terminal and run the ps command:

 ps

3) Continuously monitoring top CPU consuming processes in Linux.

Execute watch command in your terminal to find out the top CPU consuming process in Linux.

 watch "ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head"

 

3. Using top Command.

Find top cpu consuming processes in Linux using top command.

Command:

top -b -n 1 | head -n 12 | tail -n 6



READ THIS ALSO  List Of System Optimizers And Cleaning Tools For Ubuntu

Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!