How to Clear Filters and Searches in Htop?

The htop interactive process viewer is a powerful tool for monitoring system resources in Linux, but it’s easy to get stuck in a filtered or searched view. When you apply a search or a filter, htop limits the visible process list to only the items matching your criteria. To clear these active constraints and return to the full, real-time list of all running processes, you simply need to press the Esc (Escape) key. This instantly resets your view without needing to restart the utility.

Understanding Search vs. Filter in Htop

While both functions restrict what you see on the screen, htop treats searches and filters slightly differently:

The Universal Reset: Using the Escape Key

No matter whether you have an active search highlight or a rigid filter applied, the Esc key acts as the universal clear command.

  1. Locate the active search or filter at the bottom of your htop window.
  2. Press the Esc key on your keyboard.
  3. The filter or search text will disappear from the status bar, and your process list will immediately populate with all system processes again.

Alternative Method: Backspacing the Query

If you prefer to transition to a different search or filter rather than clearing it entirely, you can manually modify your query:

  1. Press F4 to reopen the filter input box (if it isn’t already focused).
  2. Use the Backspace key to delete your character string.
  3. Once the input box is completely empty, press Enter.

Using either the Esc key or emptying the text box ensures you can quickly navigate back to a global view of your system’s performance metrics without breaking your workflow.