How to Save Column Layout Changes in htop?

The htop interactive process viewer allows users to fully customize their system monitoring interface, including adding, removing, and reordering columns. To save changes made to the column layout in the htop setup menu, you must navigate using the arrow keys to configure your desired setup and then press the F10 key to save and exit. This writes the configuration directly to your local user settings file, ensuring that your personalized layout persists the next time you launch the utility.

Accessing the Setup Menu

To begin customizing your layout, open htop in your terminal and press F2 (or S on some configurations) to enter the Setup menu. This screen is divided into distinct columns to help you navigate options easily:

Configuring Your Columns

Using the arrow keys, move down to highlight Columns in the leftmost menu, then press the right arrow key to move into the Available Columns and Active Columns sections.

Saving Your Configuration

Once the “Active Columns” list matches your preferences, do not simply close your terminal or press Ctrl + C, as this will discard your changes.

To permanently save your layout, press F10 (or Esc). This action triggers htop to update its configuration file, typically located at ~/.config/htop/htoprc. The menu will close, and your terminal will immediately display the process viewer with your newly customized column arrangement intact for all future sessions.