Process management in a gamer outfit

Presets

Now let's take a look at how to use btop to find the information and details you need, as well as to filter and manipulate processes.

You can see the cpu, menu, and preset buttons on the left in the top line (Figure 6). We have already looked at the menu. The three presets are presets for the layout that influence the graphical display. You can define up to nine presets yourself in the general tab to customize the display in a granular way.

Figure 6: Sending signals to a selected process: In addition to the PID and the process name, you will see the applicable signals and notes on handling the function.

Pressing the 1 to 4 keys hides respective areas to free up space for the other displays. Pressing the key again shows the display box in question once more. The 1 key hides the CPU area, 2 removes the values for RAM and hard disks, and 3 causes the network data to disappear. If you only want a large-scale view of the process list, just press 1, 2, and 3. Or, conversely, press 4 to remove the process area.

Editing Processes

To sort, filter, and manipulate the data displayed in btop, such as the process list, click on the small buttons in the headers or type the letter highlighted in the button. For example, to filter the running processes, you can click the Filter button just above the process list, or press F. Pressing E displays the processes as a tree list, while pressing R reverses the order. For a breakdown of the processes by CPU core, press C.

If you select a process and then press the Enter key, btop++ displays the details above the list. They include the status, runtime, RAM usage, owner, and parent process. You can terminate unruly processes here by pressing T or terminate. If that doesn't work, you send a kill signal to the process by pressing K or clicking on kill. (Signals are simple system messages to a running process, usually used to stop or terminate the process [8]. Typing the kill -l command on the console displays all the signals you can send to a process.) You can send other signals to a process by pressing S or clicking on signals (Figure 6).

All told, the way btop++ visualizes the process properties and uses signals is far easier and also safer compared with htop. (Other potential alternatives to btop++ include the Python-based Glances [9] and the Rust-based bottom [10].)

Conclusions

After a long history of development, btop++ has become by far the best tool for system monitoring and process management on the console. The displays for the CPU, RAM, storage media, and network are clear and easily understandable. Manipulating processes is easier than ever. The simple keyboard controls become second nature after a few hours of use, and all of the functions can also be controlled using the mouse.

If the color scheme of the interface reminds you more of a computer game than serious work, you can change btop++'s look to display, say, gray hues, by choosing one of the various themes. The tool's configurability extends to every detail and shows how dedicated the developer is to his program. The readme on the GitHub project page [11] offers more than adequate documentation.

The Author

Ferdinand Thommes lives and works as a Linux developer, freelance writer, and tour guide in Berlin.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Bpytop

    Linux users have many options for monitoring system resources, but bpytop, a new Python port of bashtop, more than stands out from the crowd.

  • Introduction

    This month in Linux Voice.

  • Real-Time Monitoring Tools

    The Top system monitor is a useful aid for identifying system bottlenecks, and Htop, Atop, and Glances extend its possibilities.

  • inxi-gui

    Inxi gives users a comprehensive inventory of their system hardware – but only at the command line. Inxi-gui, a graphical front end, makes things a little more convenient.

  • Compromising WordPress

    WordPress is an incredibly popular tool for building websites, and don't think the attackers haven't noticed. We'll show you what to watch for.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News