archies50
archies50

Reputation: 103

Command which shows the most cpu intensive processes running on my system?

I also want to kill processes which are not running on my kernel, as my system is getting slow. Kindly assist. Using Ubuntu

Upvotes: 0

Views: 1935

Answers (2)

Michael Durrant
Michael Durrant

Reputation: 96454

If your system is slow, focus on the top memory/cpu consumers and to do that use

$ top

to see which processes are the slowest.

You can then type k (for kill) and then the process you want to kill. Use 15 for a soft-kill and 9 for a hard-kill if the softkill doesn't work.

You can type q to quit.

Upvotes: 1

Lev Levitsky
Lev Levitsky

Reputation: 65781

You can get the total number of running processes with

$ ps aux | wc -l

As for killing processes, you need to be careful with that. However, using top or ps and providing the needed options (see the man pages) you can list processes run by specific users/belonging to specific groups.

Upvotes: 2

Related Questions