Best of Linux

Best Task Managers for Linux

This article will cover a list of useful task management applications available for Linux. These applications allow you to view resource consumptions of individual processes and allow you to set up alerts and manage their behaviour. The term “resource consumption” here mainly refers to CPU, memory and network usage.

Top

Top is a command line tool to show resource consumption of various processes and tasks running on your Linux system. It comes installed by default on almost all Linux distributions and it can show overall usage of system resources as well. It also features an option to tweak priority (niceness) of running processes. Top is really useful if you want to identify processes that are eating up system resources and if you want to do a comparison between different applications. Top presents data is in a nice tabular form.

To run Top, execute the following command:

$ top

You can learn more about Top using the following two commands:

$ top --help

$ man top

Htop

Htop is a command line task manager that works similar to the “top” application mentioned above. However, it comes with a lot of extra features and interactivity that will allow you to use some advanced functions. Based on the ncurses library, Htop can also show you colored output for better readability. The bottom row in Htop shows keyboard shortcuts for changing settings and filtering the results. You can also use Htop to change resource consumption priority of processes.

You can install Htop in Ubuntu by using the command mentioned below:

$ sudo apt install htop

Htop can be installed from the package manager shipped with your Linux distribution. You can also download it from its homepage.

To run Htop, use the following command:

$ htop

You can learn more about Htop using the following two commands:

$ htop --help

$ man htop

Pre-installed Task Managers

A dedicated task management utility is included in the application stack of most Linux based desktop environments. If you are using GNOME, KDE, Xfce, MATE, LXDE, and LXQt based desktop environments, you will get a task management tool available by default as a pre-installed application. You can run this tool from the application launcher to start managing the tasks. Usually you can find these task management applications by searching for the term “system monitor” or “task manager” in the application launcher and package manager of your Linux distribution.

If for some reason one of these these task managers are is not available by default on your Linux distribution, you can install it by searching for “KSysGuard”, “Gnome System Monitor”, “Mate System Monitor”, “LXTask”, “XFCE4 Task Manager” terms in the package manager.

Ps

Ps is another useful tool that comes pre-installed by default on almost all Linux distributions. While it is not as advanced as Top and Htop, it is good enough if you just want to find the process ID (PID) of a certain task to further run any commands on it.

You won’t need to install “ps” in your Linux distribution. However, if for some reason it is not available, you can search for it in the package manager.

To run “ps”, use the following command (replace user name):

$ ps -l -u <your_user_name>

You can learn more about “ps” by using the following two commands:

$ ps --help

$ man ps

Pstree

Pstree works similar to the “ps” command, with a unique “tree view” feature . It can show processes and their child sub-processes in a tree format, allowing users to better monitor running tasks.

Pstree should come pre-installed on your Linux distribution. If not, then search for it in your package manager as it is included in repositories of all major Linux distributions.

To show processes and subprocesses along with their their process IDs, use the following command:

$ pstree -p

You can learn more about “pstree” using the following two commands:

$ pstree --help

$ man pstree

Glances

Glances is an open source and cross-platform process monitor tool written in Python. It features a ncurses and text based interface that can be viewed in a terminal emulator as well as a web based interface that can be viewed in any browser. The web based viewer requires a client-server setup, binaries for both are included in the official builds. Glances can show an overwhelming amount of information and it is much more powerful than other utilities mentioned in the article. You can customize it to show only limited information using its numerous command line options.

To install glances in Ubuntu, use the following command:

$ glances

You can install Glances in other Linux distributions either from the package manager or you can follow official installation instructions available here.

To know more about Glances, using the following two commands:

$ glances --help

$ man glances

Conclusion

Task management tools allow you to better control your system by providing useful information about resource consumption of individual processes. These tools are especially useful for system admins, application developers and gamers who routinely monitor process behavior.

About the author

Nitesh Kumar

I am a freelancer software developer and content writer who loves Linux, open source software and the free software community.