How to Install htop on CentOS 8

Install htop on CentOS 8

By default, htop comes pre-installed on CentOS8. However, if by any chance the tool is missing on your system, installation is an easy 3 step process.

1. The first step in the installation of the Htop tool is to enable the EPEL repository. To do so, run:

# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

 

After the installation of the EPEL repository, update the system.

# dnf update

2. To install htop tool, simply run the command:

# dnf install htop
Install htop in CentOS 8
Install htop in CentOS 8

After the installation is complete, you can find more information about htop by running the command.

# dnf info htop
Get htop Info
Get htop Info

3. To launch htop, simply run the command.

# htop
htop - interactive system-monitor process-viewer and process-manager
htop – interactive system-monitor process-viewer and process-manager

Additionally, you can pass some arguments to the command. For example, to list the processes of a user. let’s say tecmint run the command.

# htop -u tecmint
htop List User Processes
htop List User Processes

To get help with the command usage, simply run.

# htop --help
Get htop Help
Get htop Help

Alternatively, you can view the man pages by running:

# man htop

Leave a reply:

Your email address will not be published.