网站搜索

BpyTop - Linux 资源监控工具


BpyTOP 是另一个 Linux 命令行实用程序,用于在许多其他实用程序(如 top、Htop、Bashtop 等)中进行资源监视。bashtop 用户可以在 bpytop 中获得类似的功能 因为 bpytop 是从 bashtop 移植的,并且完全用 Python 编写的。 Bpytop 适用于各种 Linux 发行版和 macOS。

BpyTOP 特点

  • 快速响应的用户界面。
  • 键盘和鼠标支持。
  • 支持多个过滤器。
  • SIGTERM、SIGKILL、SIGINT 可以发送到选定的进程。
  • 网络使用情况、磁盘当前读写速度的自动缩放图表。

在 Linux 中安装 BpyTOP – 资源监控工具

安装bpytop有多种方法。您可以使用特定于您的发行版的包管理器,也可以使用快照包或手动构建它。

使用 PIP 包管理器安装 BpyTOP

首先,通过键入来检查您的 Linux 发行版上运行的 python 版本。

python3 --version

检查是否安装了 python 包管理器 pip,如果没有安装 pip3,请使用我们关于在各种 Linux 发行版中安装 pip 的文章。

sudo apt install python3-pip   [On Debian/Ubuntu]
sudo yum install python-pip    [On CentOS/RHEL]   
sudo dnf install python3       [On Fedora]

现在我们的所有依赖项都满足安装bpytop

sudo pip3 install bpytop

安装过程中出现“警告”。 Bpytop 安装在我的主目录下的 .local/bin 中,该目录不是 PATH 环境变量的一部分。现在,我们将继续将安装路径添加到 PATH 变量中。

echo $PATH
export PATH=$PATH:/home/tecmint/.local/bin
echo $PATH

使用 GIT 存储库安装 BpyTOP

确保您的计算机上安装了 git,因为我们需要从 GitHub 克隆软件包。请按照以下步骤手动安装bpytop

sudo apt-get install git  [On Debian/Ubuntu]
sudo yum install git      [On CentOS/RHEL/Fedora]  
git clone https://github.com/aristocratos/bpytop.git
cd bpytop
sudo make install

使用包管理器安装 BpyTOP

对于基于 Ubuntu/Debian 的系统,bpytop 可在 Azlux 的存储库中找到。按照以下步骤获取存储库并安装 bpytop。

echo "deb http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list
wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add -
sudo apt update
sudo apt install bpytop

对于 FedoraCentOS/RHELbpytop 可通过 EPEL 存储库使用。

sudo yum install epel-release
sudo yum install bpytop

对于 Arch Linux,请使用 AUR 存储库,如图所示。

git clone https://aur.archlinux.org/bpytop.git
cd bpytop
makepkg -si

您现在可以启动该应用程序了。通过在终端中运行“bpytop”来启动bpytop

bpytop

从左上角,您可以找到在不同模式之间切换的选项以及使用菜单的选项。

有 3 种不同的模式可供选择。您可以从菜单→“查看模式”更改视图或更改模式:如上图所示。

您可以通过“菜单”选项配置更多选项。

这就是本文的全部内容。安装bpytop,使用它,并与我们分享您的经验。