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.
Navigating to the Setup Menu
To change how htop responds to keyboard inputs and
manages processes, you need to access the configuration screen.
- Launch
htopin your terminal by typinghtop. - 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:
- Confirm particle operations (Kill / Delete) By
default, pressing
F9or theDeletekey triggers a confirmation prompt before sending a signal to terminate a process.
How to Modify the Setting
- Use the down arrow key to highlight Display options in the leftmost column.
- Press the right arrow key to move into the actual options list.
- Scroll down to Confirm particle operations (or
Confirm kill depending on your
htopversion). - Press the Spacebar to check or uncheck this option.
- Checked:
htopwill ask “Really kill process X?” when you press Delete. - Unchecked: Pressing the Delete/Kill key will instantly terminate the process without safety prompts.
- Press F10 to save your changes and return to the main process list.