@wxy
https://linux.cn/article-15294-1.html
This commit is contained in:
Xingyu Wang 2022-11-27 11:38:06 +08:00
parent 4af7313964
commit c4da98ad62
2 changed files with 160 additions and 159 deletions

View File

@ -0,0 +1,160 @@
[#]: subject: "5 htop Alternatives to Enhance Your Linux System Monitoring Experience"
[#]: via: "https://itsfoss.com/authenticator/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "wxy"
[#]: reviewer: "wxy"
[#]: publisher: "wxy"
[#]: url: "https://linux.cn/article-15294-1.html"
5 个 htop 替代:增强你的 Linux 系统监控体验
======
![][0]
`htop` 是一个流行的命令行工具,可以帮助监测 Linux 上的系统资源和性能。
**它比通常默认开箱即用的 top 好**。
使用 `htop`,你可以对进程进行过滤和排序,以便更好地了解情况,获得正在运行的进程的树状视图,并在需要时杀死进程。
![htp 2022][1]
我使用 `htop` 而不是其他系统监控工具,因为它可以显示对我来说至关重要的东西,并允许在我需要控制运行中的服务时终止流氓进程或冻结进程。
但是,如果你想要其他显示更多信息,或一个看起来不同的东西,有哪些**htop 替代品**呢?让我们来看看。
### 1、atop
![atop 2022][3]
[atop][4] 可以提供所有运行的进程的细节。你可以得到你需要的所有数据,以了解你系统上的进程情况。
它还提供了对资源利用率进行永久记录的能力,以便进行长期分析。系统管理员可能会发现这比其他工具更有用。
不幸的是,它并没有为你提供漂亮的输出。因此,如果你想要的话,请继续看下面的其他替代品。
#### 如何安装 atop
对于基于 Ubuntu/Debian 的发行版,键入:
```
sudo apt install atop
```
### 2、vtop
![vtop 2022][5]
如果你想要一个漂亮的输出和管理进程的基本功能,[vtop][6] 是一个完美的系统监控工具。
正如我在其他一些文章中所说,它的输出看起来像终端中的 GUI。你可以使用鼠标也可以选择禁用它。也可以定制它的主题。
它是用 Node.js 构建的。所以,你需要安装额外的包来安装它。
不幸的是,这个项目似乎不再积极维护。但是,在写这篇文章的时候,它对我来说还是有用的。
#### 如何安装 vtop
对于基于 Ubuntu 的发行版,在终端输入以下命令:
```
sudo apt install nodejs
sudo apt install npm
sudo npm install -g vtop
```
### 3、btop++
![btop][7]
[btop++][8] 是 bashtop 和 bpytop 的一个 C++ 版本。是的,它是这些项目的第三次迭代,由同一个开发者完成。
`btop++` 包括完全的鼠标支持,带有一个受游戏启发的菜单系统,可以让你过滤进程、树状视图等等。
#### 如何安装 btop++
使用官方软件库,你可以很容易地在 Fedora、openSUSE 和 FreeBSD 上安装它。
对于 Fedora你可以键入
```
sudo dnf install btop
```
你可以探索它的 [GitHub 页面][8],了解在其他 Linux 发行版上的安装方式。
### 4、Glances
![glances 2022][9]
Glances 与 `htop` 类似,但有更多的功能。
它是一个跨平台的系统监控工具,可以将数据以 CSV 或其他格式导出,用于 InfluxDB、Elasticsearch 等。
你也可以利用它的网页用户界面,远程(或在不能访问终端的情况下)查看统计数据。
#### 如何安装 Glances
对于基于 Ubuntu 的发行版,你可以键入:
```
sudo apt install glances
```
### 5、nmon
![nmon 2022 1][10]
[nmon][11] 是一个令人印象深刻的监测工具,它可以让你控制你想显示的输出内容。
你可以提取监测数据(以 CSV 格式导出)并用于进一步分析。它很容易切换统计数据和在不同的视图之间进行切换。
默认情况下,它每两秒刷新一次数据,但你可以自定义它,并使用更多的选项来调整你的体验。
#### 如何安装 nmon
你可以在官方软件库中找到它。对于基于 Ubuntu 的发行版,在终端键入以下内容:
```
sudo apt install nmon
```
### 总结
[top 2022][12]
`top` 命令工具被植入在你的 Linux 系统中。如果你想要一个基本的监控工具,想要关注系统进程和一些统计信息,`top` 就足够了。
我不确定它是否可以算作比 `htop` 更强的体验,这也是 `top` 没有被列入主要列表的原因。
正如你在这里看到的,一些监控工具可能很有趣,而且证明比 `htop` 更有洞察力。
*你最喜欢的 `htop` 替代品是什么?你认为 `htop` 对你的使用情况来说已经足够了吗?欢迎在下面的评论中让我知道你的想法。*
--------------------------------------------------------------------------------
via: https://itsfoss.com/authenticator/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[wxy](https://github.com/wxy)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/wp-content/uploads/2022/11/htop-2022.png
[2]: https://itsfoss.com/linux-system-monitoring-tools/
[3]: https://itsfoss.com/wp-content/uploads/2022/11/atop-2022.png
[4]: https://www.atoptool.nl/index.php
[5]: https://itsfoss.com/wp-content/uploads/2022/11/vtop-2022.png
[6]: https://github.com/MrRio/vtop
[7]: https://itsfoss.com/wp-content/uploads/2022/11/btop.png
[8]: https://github.com/aristocratos/btop
[9]: https://itsfoss.com/wp-content/uploads/2022/11/glances-2022.png
[10]: https://itsfoss.com/wp-content/uploads/2022/11/nmon-2022-1.png
[11]: https://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage
[12]: https://itsfoss.com/wp-content/uploads/2022/11/top-2022.png
[0]: https://img.linux.net.cn/data/attachment/album/202211/27/113700npcbceb0c0prbqcn.jpg

View File

@ -1,159 +0,0 @@
[#]: subject: "5 htop Alternatives to Enhance Your Linux System Monitoring Experience"
[#]: via: "https://itsfoss.com/authenticator/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
5 htop Alternatives to Enhance Your Linux System Monitoring Experience
======
htop is a popular command-line tool to help monitor the systems resources and performance on Linux.
**Its better than top**, often available by default out of the box.
With htop, you can filter and sort processes to understand things better, get a tree view of the processes running, and kill processes when needed.
![htop 2022][1]
I use htop over other system monitoring tools because it displays whats essential to me and allows terminating rogue/frozen processes when I need to take control of running services.
But, if you want something else that displays more info or looks different, what are some **htop alternatives**? Lets take a look.
**Recommended Read**: [7 System Monitoring Tools for Linux to Keep an Eye on Vital System Stats][2]
### 1. atop
![atop 2022][3]
[atop][4] is all about running process details. You get all the data you need to understand the processing on your system.
It also provides the ability to make a permanent log of resource utilization for long-term analysis. A system administrator might find this more useful than anyone else.
Unfortunately, it does not provide you with a pretty output. So, if you want that, keep looking at the other options below.
#### How to install atop?
For Ubuntu/Debian-based distributions, type in:
```
sudo apt install atop
```
### 2. vtop
![vtop 2022][5]
[vtop][6] is the perfect system monitoring utility if you want a good-looking output and essential features to manage processes.
The output looks like a GUI in a terminal, as Ive stated in some of my other articles. You can have mouse support or choose to disable it. The theme can also be customized.
It is built using Node.js. So, you need to install additional packages to get it installed.
Unfortunately, this project seems to be no longer actively maintained. But, it worked for me at the time of writing this article.
#### How to install vtop?
For Ubuntu-based distros, enter the following commands in the terminal:
```
sudo apt install nodejs
sudo apt install npm
sudo npm install -g vtop
```
### 3. btop++
![btop][7]
[btop++][8] is a C++ version of bashtop and bpytop. And, yes, it is the third iteration of those projects by the same developer.
btop++ includes full mouse support, features a game-inspired menu system, lets you filter processes, get a tree view, and more.
#### How to install btop++?
Using the official repositories, you can easily install it on Fedora, OpenSUSE, and FreeBSD.
For Fedora, you can type in:
```
sudo dnf install btop
```
You can explore its [GitHub page][8] for options to install on other Linux distributions.
### 4. Glances
![glances 2022][9]
Glances is similar to htop, but with more features.
It is a cross-platform system monitoring utility that can export data as CSV or other formats for InfluxDB, Elasticsearch, and more.
You can also utilize its web user interface to check the stats remotely or without access to the terminal.
#### How to Install Glances?
For Ubuntu-based distros, you can type in:
```
sudo apt install glances
```
### 5. nmon
![nmon 2022 1][10]
[nmon][11] is an impressive monitoring utility that lets you control what you want to display as the output.
You can extract the monitoring data (export it as CSV) and use it for further analysis. It is easy to toggle statistics and switch between different views.
By default, it refreshes the data every two seconds, but you can customize it and access more options to tweak your experience.
#### How to install nmon?
You can find it in the official repositories. For Ubuntu-based distros, type in the following in the terminal:
```
sudo apt install nmon
```
### Wrapping Up
![top 2022][12]
The top command utility comes baked in with your Linux system. If you want a no-nonsense monitoring utility and want to keep an eye on system processes and some stats, top is sufficient.
Not sure if I can count it as an enhanced experience over htop and thats the reason why top is not included in the main list.
As you can see here, some monitoring utilities may be fun and prove to be more insightful than htop.
_What is your favorite htop replacement? Do you think htop is more than enough for your use-case? Feel free to let me know your thoughts in the comments down below._
--------------------------------------------------------------------------------
via: https://itsfoss.com/authenticator/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/wp-content/uploads/2022/11/htop-2022.png
[2]: https://itsfoss.com/linux-system-monitoring-tools/
[3]: https://itsfoss.com/wp-content/uploads/2022/11/atop-2022.png
[4]: https://www.atoptool.nl/index.php
[5]: https://itsfoss.com/wp-content/uploads/2022/11/vtop-2022.png
[6]: https://github.com/MrRio/vtop
[7]: https://itsfoss.com/wp-content/uploads/2022/11/btop.png
[8]: https://github.com/aristocratos/btop
[9]: https://itsfoss.com/wp-content/uploads/2022/11/glances-2022.png
[10]: https://itsfoss.com/wp-content/uploads/2022/11/nmon-2022-1.png
[11]: https://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage
[12]: https://itsfoss.com/wp-content/uploads/2022/11/top-2022.png