Commands.page Logo

How to Configure htop Columns on Ubuntu Linux

This guide explains how to configure htop to display specific columns on Ubuntu. You will learn how to access the setup menu, add or remove fields, and arrange them to monitor system resources effectively. By customizing the view, you can focus on critical data like CPU usage, memory consumption, or process IDs without clutter.

Install and Launch htop

If you have not installed htop yet, open your terminal and run the following command:

sudo apt update
sudo apt install htop

Launch the tool by typing htop and pressing Enter.

Access the Setup Menu

Once htop is running, press the F2 key on your keyboard. This opens the Setup menu where you can customize the interface. Use the arrow keys to navigate through the tabs at the top of the screen.

Configure Display Columns

Navigate to the Display options tab using the right arrow key. Here you will see a list of available columns on the left and active columns on the right.

  1. Add Columns: Highlight a desired field in the left list and press the Enter key or the right arrow key to add it to the active list.
  2. Remove Columns: Highlight a field in the right list and press the Enter key or the left arrow key to remove it.
  3. Reorder Columns: Use the F5 key to move a selected column left and the F6 key to move it right.

Save and Exit

After arranging your columns, press F10 to save the configuration and exit the Setup menu. Your changes will apply immediately to the current session and persist for future sessions. Press q to quit htop when you are finished monitoring your system.