Hello, friends. As we already know the terminal is a very versatile tool and we can even monitor resources with it. So, in this post, we will show you how to install BpyTop which is a terminal monitoring tool like htop.
Short and simple, BpyTop is a computer resource monitor that uses the terminal interface. It is a Bashtop Python Port that takes all the advantages of being written in Python 3.6.
Some of the features of BpyTop are
- Easy to use, with a game inspired menu system.
- Full mouse support, all buttons with a highlighted key is clickable and mouse scroll works in process list and menu boxes.
- Fast and responsive UI with UP, DOWN keys process selection.
- Function for showing detailed stats for selected process.
- Ability to filter processes, multiple filters can be entered.
- Easy switching between sorting options.
It must also be said that we are in the presence of an open-source program because it is released under the Apache license and the source code is accessible to everyone. The program has versions for macOS, many Linux distributions, and BSD so that in servers will run without problems.
Install BpyTop on Ubuntu / Debian
The dependencies of BpyTop are quite a few. In particular, we talk about Python 3.6+ and psutil. All of them can be easily solved.
So, first, check which version of Python you have
python -V
Now it is necessary to install Pip. To do this, run the following command:
sudo apt install python3-pip
And then, install BpyTop:
pip3 install bpytop
And it will start the installation process.
During the installation process, you will get a warning indicating that the path /home/[your-user]/.local/bin
is not in your PATH. And it’s in this directory where BpyTop has been installed.
So, to correct it, execute the following command:
export PATH=$PATH:/home/[your-user]/.local/bin
In my case:
export PATH=$PATH:/home/angelo/.local/bin
And confirm the changes by displaying the variable:
echo $PATH
And so it will be installed and ready to run.
Running BpyTop
To run it, you can open the terminal and then run the command
bpytop
And it will start loading modules and when it does, you will see the main screen.
The whole screen is very well organized, so you can effortlessly get to know the computer’s resources. Processes, memory, CPU, temperature all easily detectable.
Having mouse integration, you can access the options by clicking the word menu at the top of the window.
Also, you can change between screen layout
and end processes by simply selecting them and clicking on Terminate
So, enjoy it.
Conclusion
There are many similar tools in the terminal such as htop, atop and others but it has mouse integration which makes it quite accessible to many.