When monitoring running processes on Unix-like systems, the most commonly used programs are TOP and its enhanced version, HTOP. My personal favorite is HTOP. From time to time, however, developers release alternatives to these programs. An alternative to the top and htop tools is referral. It is a modular system monitor written in the Rust language.
In terms of the referral on functionality, we can list the following:
- Instead, he monitors CPU, memory and swap page usage.
- It monitors system temperature and fan speed.
- The update interval can be adjusted. The default value is 3 seconds.
- We can extend the data stream to present more detailed charts and other information.
- Unit testing.
- Clean interface.
- Open source.
Install the Hegemon
Make sure Rust 1.26 or higher is installed. To install Rust in a Linux distribution, see the following guide:
- Install the Rust programming language in Linux
Also install the libsensors library. It is included in the default repository of most Linux distributions. For example, you can install it on an RPm-based system such as Fedora using the following command:
$ sudo dnf install lm_sensors-devel
Copy the code
On debian-based systems like Ubuntu, Linux Mint, you can install it using this command:
$ sudo apt-get install libsensors4-dev
Copy the code
After installing Rust and libsensors, install referral on using the command:
$ cargo install hegemon
Copy the code
Instead, use the following command to start monitoring the running process in Linux:
$ hegemon
Copy the code
Here is sample output for the Arch Linux desktop.
To exit, press Q.
Note that Referral on is still in the early stages of development and is not a full replacement for the top order. It can be buggy and feature-deficient. If you encounter any bugs, please report them on the project’s GitHub page. The developers plan to introduce more features in upcoming releases. So keep an eye on this project.
That’s it. Hope this article is useful. There’s more good stuff. Stay tuned!
Cheers!
Via: www.ostechnix.com/hegemon-a-m…
SK Selected by Lujun9972
This article is originally compiled by LCTT and released in Linux China