For terminal enthusiasts , It is also important to be able to monitor the use of system resources . Understanding the system's resource utilization can help you make wise decisions in general system maintenance . There are some options , such as top and htop, But they only show some system metrics , such as CPU And memory usage .Bpytop It's an efficient 、 Visually attractive terminal based resource monitor .
Starting installation at Bpytop Before , Make sure the system meets the following requirements :
- Psutil modular . Installation mode
python3 -m pip install psutil
You can install... In two ways Bpytop： from github Download the source code package, compile and install it from the repository of each distribution system . Let's look at each of the following installation methods ：
Source code installation
First of all, you need to github clone ：
[root@localhost ~]# git clone https://github.com/aristocrat...
Cloning into 'bpytop'...
remote: Enumerating objects: 121, done.
remote: Counting objects: 100% (121/121), done.
remote: Compressing objects: 100% (72/72), done.
remote: Total 501 (delta 73), reused 95 (delta 48), pack-reused 380
Receiving objects: 100% (501/501), 765.44 KiB | 81.00 KiB/s, done.
Resolving deltas: 100% (298/298), done.
When the cloning is complete , Get into bpytop Catalog , And compile and install ：
[root@localhost ~]# python3 -m pip install psutil
[root@localhost ~]# cd bpytop/
[root@localhost bpytop]# make install
When compiling and installing , Need to install psutil modular , If it's not installed ,bpytop Cannot start .
psutil Modules can also be installed from the distribution repository , for example ubuntu and Centos：
# Centos8 Install in python3-psutil
[root@localhost ~]# yum -y install python3-psutil
Ubuntu 18.04 Install in python3-psutil
bob@ubuntu-18-04:~$ sudo apt -y install python3-psutil
installation is complete .
How to install
Besides compiling from source code , It can also be installed as follows Bpytop：
Ubuntu Use in snap Package manager installation
bob@ubuntu-18-04:~$ sudo snap install bpytop
bpytop 1.0.22 from James Tigert (kz6fittycent) installed
Centos8 Use in dnf/yum Package manager installation
[root@localhost ~]# dnf -y install bpytop
FreeBSD Use in pkg Package manager installation
$ sudo pkg install bpytop
Just type in the terminal
bpytop You can run ：
Centos8 Start in text mode terminal Bpytop
Ubuntu The terminal in the graphical interface starts Bpytop
If you want to change the theme , You can press
ESC key `, And then choose
`OPTIONS, Then there are some options , It can be modified . Use the keyboard up and down, left and right keys to modify .
If you need help , You can press
h key perhaps
ESC key `, choice
`HELP Options . You can open the help page .
So how to exit Bpytop The procedure ？ Just click
q key You can quit . perhaps
ctrl + c Shortcut key exit .
Bpytop The configuration file of is in
$HOME/.config/bpytop in , It can also be modified in the configuration file bpytop The theme of .