6

In htop I can use / to search for terms, and typically when searching in tools like less and vi, I can use n or N to show the various instances of results that I find, but this doesn't work in htop. Does anyone know how to show next and previous results when searching in htop?

Thanks!

JacobIRR
  • 183
  • htop AFAIK is meant primarily for interactive use, but for this use-case I would suggest searching the output of top -b -n1. – DopeGhoti May 24 '17 at 17:24
  • 1
    The version I use ( 2.0.2 ) has for next result. You also could use the filter function to only show the results and navigate with up/down keys. – Thomas May 24 '17 at 18:04
  • @Thomas - the filter is what I needed thanks. would be glad to accept as answer – JacobIRR May 24 '17 at 18:14

1 Answers1

7

You can use F3 Search key to go to next occurrence of the search item. This works regardless of whether you initiate the search with / or F3. Just be sure to avoid pressing Return or else F3 will start a new search instead of continuing the previous one.

Ruslan
  • 3,370