How to check running tasks, CPU & RAM usage in Ubuntu 12.04

How to see which tasks are running, how much processing power (CPU) and memory (RAM) each task is using, PIDs (process IDs) for running tasks, information about your CPU, total RAM, etc. from a command-line shell/terminal in Ubuntu 12.04

 Posted March 27, 2016

Check CPU Usage

Type “top” to see a multitude of information, constantly updated:

Output:

Hit the “1” key to see CPU usage by core:

And “q” to exit out:

To see a static list of the top 20 CPU-hogging tasks running on your system:

Output:

Or to list all tasks with both CPU & RAM usage:

For information about your CPU:

Output:

 

Check Memory (RAM) Usage

Type the following into your into your shell:

The output will look as follows:

In my case, I’ve got a total of 4GB of RAM and an 8GB swap file.

Leave a Reply

Your email address will not be published. Required fields are marked *