How to Change the Delete Key Behavior in Htop?

The htop interactive process viewer allows users to customize its interface and functionality through a dedicated setup menu. While many users expect the Delete key to instantly kill a selected process, its default behavior can vary or require confirmation depending on your configuration. This article explains how to navigate the htop setup menu, locate the specific configuration section that influences key behaviors, and modify the settings to streamline your process management.

To change how htop responds to keyboard inputs and manages processes, you need to access the configuration screen.

  1. Launch htop in your terminal by typing htop.
  2. Press F2 (or S on some keyboards) to enter the Setup menu.

Once inside, the screen splits into distinct columns: Setup, Meters, Display options, Colors, and Columns.

The Setup Section for Key Behavior

To alter how functions like process deletion (killing) behave, navigate to the Display options section using the arrow keys.

Within Display options, you will find specific toggle settings that alter keyboard shortcuts and execution safety. The most relevant setting for the Delete key behavior is:

How to Modify the Setting

  1. Use the down arrow key to highlight Display options in the leftmost column.
  2. Press the right arrow key to move into the actual options list.
  3. Scroll down to Confirm particle operations (or Confirm kill depending on your htop version).
  4. Press the Spacebar to check or uncheck this option.
  1. Press F10 to save your changes and return to the main process list.