Linux and FreeBSD resource monitoring using bpytop

You can download this article in PDF format via the link below to support us. Download the guide in PDF formatClose

Life on the terminal is very sweet. It is a pleasant feeling to knock out these commands without missing out, and it will attract you when you configure the content. Going out of the terminal just to check the operation of the system is no doubt, so there are many great tools that will make your terminal life better. We know that you have used top or htop to check the operation of the system at a glance, but sometimes you need more. The good news today is that “more” is available to you, and we provide it to you today.

Introduction desktop, A gorgeous, cute, theme-enabled terminal resource monitor. desktop Is a Python-based resource monitor for your terminal. It is a skinning version of normal top and a Python port of bashtop. You can fully customize the theme to get the color and appearance you want. This tool monitors the usage and statistics of the processor, memory, disk, network, and processes, and we will check them all here.

Features of bpytop resource monitoring tool

The following features of bpytop make it stand out in many applications.

  • Easy to use, with a menu system inspired by the game.
  • The mouse is fully supported, all buttons with highlight keys can be clicked, and mouse scrolling can be used in the process list and menu box.
  • Fast and responsive UI, with UP and DOWN keys for process selection.
  • The function for displaying detailed statistics of the selected process.
  • With the ability to filter process, you can enter multiple filters.
  • Easily switch between sorting options.
  • Send SIGTERM, SIGKILL, SIGINT to the selected process.
  • UI menu for changing all configuration file options.
  • Auto-scaling graph of network usage.
  • If a new version is available, display a message in the menu
  • Display the current read and write speed of the disk

Install bpytop

Enough talk, we will continue to deploy bpytop. It was developed using Python, so it depends a lot on it. Therefore, we need to install Python3 and psutil modules (v5.7.0 or higher) in all Linux distributions and FreeBSD in case you use modules not covered here.

Depends on installing Linux and FreeBSD

Install python3, psutil and git using the package manager of your choice

#####Ubuntu#####
sudo apt -y update && sudo apt -y upgrade
sudo apt install -y python3-pip git gcc python3-dev
sudo pip3 install psutil

#####CentOS #####
sudo yum install update
sudo yum install python3 install gcc python3-devel git
sudo pip3 install psutil

#####FreeBSD#####
sudo pkg install git python3 py37-psutil

#####Arch Linux | Manjaro#####
sudo pacman -S python python-psutil

You can get bpytop in your favorite Linux distribution Mac or FreeBSD in many ways. From snapshots, repositories to manual methods, whichever method you prefer, it will be sorted. We will start manually:

Manual installation

All the bpytop code is published on GitHub, so we will just clone the project and proceed with the installation. Since we have installed all the dependencies, we can clone and install bpytop freely.

#####FreeBSD#####

sudo pkg install bpytop

#####Ubuntu#####
cd ~
git clone https://github.com/aristocratos/bpytop.git
cd bpytop
sudo make install

#####CentOS #####
cd ~
git clone https://github.com/aristocratos/bpytop.git
cd bpytop
sudo make install

#####FreeBSD#####
cd ~
git clone https://github.com/aristocratos/bpytop.git
cd bpytop
sudo make install

Install via Snap

bpytop comes in handy from Snappy. Everyone knows the reputation of Snap, which makes installing applications quick and easy. If you like Snap, you can get bpytop as follows:

####Install bpytop on Debian####

sudo apt update
sudo apt install snapd
sudo snap install core
sudo snap install bpytop

####Install bpytop on Ubuntu####

sudo apt update
sudo apt install snapd
sudo snap install bpytop

####Install bpytop on CentOS####

sudo yum install epel-release
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install bpytop

####Install bpytop on RHEL 8####

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf upgrade
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
sudo yum update
sudo yum install snapd

####Install bpytop on Arch Linux | Manjaro####

sudo pacman -S snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install bpytop

####Install bpytop on Fedora####

sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install bpytop

After installing bpytop with Snap, please make sure you have the following necessary permissions

sudo snap connect bpytop:mount-observe
sudo snap connect bpytop:network-control
sudo snap connect bpytop:hardware-observe
sudo snap connect bpytop:system-observe
sudo snap connect bpytop:process-control
sudo snap connect bpytop:physical-memory-observe

How to use bpytop

To use bpytop, you just need to enter the name, it comes with many switches or options that can be used to adjust it for a given function. It is also fine to run it without any parameters.

$ bpytop [argument]

Arguments:
    -f, --full            Start in full mode showing all boxes [default]
    -p, --proc            Start in minimal mode without memory and net boxes
    -s, --stat            Start in minimal mode without process box
    -v, --version         Show version info and exit
    -h, --help            Show this help message and exit
    --debug               Start with loglevel set to DEBUG overriding value set in config

After running the bpytop command, it will start as shown below

Screening procedure

To filter processes by a specific string, press the keyboard keys (F, f), and then type the string name. An example is to search for “cron”. Just press the keyboard key [FF)[F,F) Then enter cron. When you are done, you can press the Escape (ESC) key to clear any entered filters.

Linux and FreeBSD resource monitoring using bpytop

Change view mode

If you wish to change to viewing mode, the letter m will work intuitively. Whenever you want to change to the minimum mode or smaller index, press “m”.

After pressing “Meter

Linux and FreeBSD resource monitoring using bpytop

press”Meter“(Minimal view)

Linux and FreeBSD resource monitoring using bpytop

Configure theme

There are two ways to configure the theme you wish to keep. The first is the configuration file method. The configuration files are stored in the “$HOME/.config/bpytop” folder.

vim ~/.config/bpytop/bpytop.conf

Linux and FreeBSD resource monitoring using bpytop

The second method is through the bpytop interface itself. Just launch it through the command and press the “Esc” key to get the menu items as shown below.

Linux and FreeBSD resource monitoring using bpytop

Use the up/down arrow keys to select “Options”. Under “Options”, you can find many other options for you to set, such as “Color Theme”, “Theme Background”, “Proc Tree”, “Proc Color” and so on, you will observe more.

Linux and FreeBSD resource monitoring using bpytop

You can use the up/down keyboard keys to select a given option. After entering the given option, use the left/right arrow keys to select the setting to be made on the “option”.

Linux and FreeBSD resource monitoring using bpytop

For example, to select 12 given “color themes”, we use the up/down keyboard keys to determine the “color theme” option, and then use the left/right keys to scroll through the themes. As shown in the image above, when you scroll through, it will change to the corresponding theme, allowing you to view it visually during the process. This is a better way to configure such settings in my opinion.

You can also use many other keyboard keys for specific settings. The screenshot has been shared below.

Linux and FreeBSD resource monitoring using bpytop

To achieve the same effect, press the “Esc” key, and then select the “Help” option on the list.

Linux and FreeBSD resource monitoring using bpytop

To close the bpytop interface, click “qdrop out.

Concluding remarks

The bpytop terminal monitoring tool can help you get a lot of information about the system in general. Its simplicity and rich indicators make it an excellent tool and valuable companion for your conquering period. Build a friendship with it, and your rewards will be many. That being said, we thank you for staying till the end, and we hope that this guide will be as helpful as we hoped. Below is a list of other guides similar to this guide:

10 best open source Linux monitoring tools

Top terminal-based monitoring tool for Linux

Install Bashtop-Terminal Resource Monitor for Linux | macOS | FreeBSD

broot-an easy way to view and navigate directory trees in Linux

The best terminal emulator for Linux

You can download this article in PDF format via the link below to support us. Download the guide in PDF formatClose

Sidebar