4

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!

  • 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 <F3> for next result. You also could use the filter function <F4> 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
5

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.