CentOS Install Htop

29/12/2020
It doesn’t matter whatever system you’re using – Windows, Linux or macOS or whatever, having a handy task manager is always a privilege as it allows you get even more control over the system. That’s why there are a number of reasons I love to have Htop at my disposal.

Htop is a great, interactive system monitor and process manager that targets the UNIX systems. Of course, it’s a CLI tool that uses the text-mode. For using Htop, you need to have “ncurses” present in your system.

This is a very powerful solution for the enterprise and server areas where GUI is mostly avoided. Granted, GUI tools are more awesome-looking and easier-to-use for any user but for pro and server managers, the CLI is the best way to go.

In the case of CentOS – the free edition of Red Hat Enterprise Linux, is the testing ground of the original condition of the server and enterprise. Today, let’s have a look at the installation and usage of Htop on CentOS.

Installing htop

Htop is already available at the Fedora EPEL repository and it’s officially maintained. THat’s why this is the most recommended way of getting htop. Don’t worry; if you wish, you can also download the source and compile it by yourself.

1) Installing from EPEL

Make sure that your system has enabled the EPEL repository –

sudo yum install epel-release
sudo yum update

Once EPEL is ready, it’s time to install htop –

sudo yum install htop

2) Installing from source

At first, make sure that your system includes the “Development Tools” –

sudo yum groups mark install "Development Tools"
sudo yum groups mark convert "Development Tools"

sudo yum groupinstall “Development Tools”
sudo yum install glibc-devel glibc-headers kernel-headers kernel-devel gnutls-devel

sudo yum install ncurses-devel

Now, download the latest source code of htop

tar -xvzf htop-2.2.0.tar.gz

Start the building process –

./configure

make

sudo make install

Htop usage

Fire up the tool –

htop

This is the window where you’ll find out every single information about your system.

On the top, you can check out the memory and swap usage.

For entering the setup, press F2.

Here, you can easily check out what options and info are available on the main window.

Tree view

It’s my favorite view as it allows you to understand the hierarchy of each process with ease. Press F5 or “t”.

Killing a process

Select a process and hit F9 or “k” button.

Then, select “SIGKILL”.

You can also perform multi-kill. Use “Spacebar” for tagging all the processes you want to kill and then,

Processes from a single user

On the main window, hit “u” key.

Then, select the user you want to see.

Monitor a particular process

Highlight the process and hit “F”.

The highlighting will change the highlighting of the process.

For all the other usage, check out the man page of htop –

man htop

Or, the htop help page –

htop –help

Enjoy!

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

[Rsyslog] [ApacheLog] [LAB] [Phần 2] Hướng dẫn cấu hình đẩy Log Apache về Ryslog Server

Tiếp nối phần 1, ở phần 2 mình sẽ hướng dẫn 2 cách đẩy Log Apache về Server Log tập trung. ...
30/12/2020

Hướng dẫn cài đặt Rclone

Giới thiệu Rclone mang đến giải pháp thực sự hữu ích để đồng bộ hóa dữ liệu của bạn với...
30/12/2020

[DNS] Cấu hình DNS Server trên CentOS 8

Hiện nay với sự ra đời của mọi thiết bị kết nối Internet (Internet of Things), số lượng địa...
30/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024