How To Install and use htop on Fedora 34/35/36

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

In this guide, we will show you how to install and use htop in Fedora systems.

htop is an interactive system-monitor process-viewer and process-manager. It is designed as an alternative to the Unix program top.

It’s a command line utility that allows the user to interactively monitor the system’s vital resources or server’s processes in real time. htop supports mouse operation, uses color in its output and gives visual indications about processor, memory and swap usage. 

Installation of htop on Fedora

Follow the steps below to install htop

  • Update your Fedora system packages as follows:
sudo dnf update -y && sudo dnf upgrade -y
  • htop is available on Fedora systems base repository. so run the command below to install it
sudo dnf install htop
  • Also you can install Htop from the official source by downloading the latest htop from the Github page as shown below:
wget https://github.com/htop-dev/htop/releases/download/3.2.0/htop-3.2.0.tar.xz
  • Extract the downloaded tarball
tar xfvz htop-3.2.0.tar.xz
  • Run the below commands to compile it.
cd htop-3.2.0/
./configure
make
sudo make install

How to use htop

Once installed, type htop on the command line to launch the Htop interface on Fedora:

htop

Options of htop

  • -C –no-color –no-colour : Start htop in monochrome mode.
  • -d –delay : Used to show the delay between updates, in tenths of seconds.
  • -p –pid=PID, PID… : Used to show only the given PIDs.
  • -s –sort-key COLUMN : Sort by this column (use –sort-key help for a column
  • -h –help : Used to display the help message and exit.
  • -u –user=USERNAME : Used to show only the processes of a given user.
  • list).

Example to show the processes for a specified user:

htop -u unixcop

-v –version : Output version information and exit.

htop -V

Buttons

  • Arrows, Page Up, Page Down, Home, End: Scroll the process list.
  • Space: Tag or untag a process.
  • – Trace process system calls.
  • – Untag all processes (remove all tags added with the Space key).
  • F1 â€“ Help
  • F2 â€“ setup
  • F3 â€“ search
  • F4 â€“ filtering: type in part of a process command line and only processes whose names match will be shown.
  • F5 â€“ Tree view.
  • F6 â€“ Sorting.
  • F7 â€“ Increase the selected process’s priority. This can only be done by the superuser.
  • F8 â€“ Decrease the selected process’s priority.
  • F9 â€“ Kill process.
  • F10 â€“ Quit.

To go to the help page of htop, press F1 button

Conclusion

That’s it

In this tutorial, we showed you how to install and use htop in Fedora 36

Thanks.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
MQ-Jr
MQ-Jr
unixcop Admin

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook