Man page search – how can I turn off the highlighting after matches found

lessman

When using man pages, a commonly used feature is to use / then a search term to get to a word of interest.

Once found, all matches remain highlighted – this can often be distracting when I just want to read the man page.

I'm sure its a simple key combo, but how can I turn the highlighting off once the matches are found?

  • ESC does nothing
  • q obviously quits out of man page completely

Note: I'm on Ubuntu

Best Answer

Since you're on Ubuntu, the pager used to visualise man pages is probably GNU less.

As you can see after pressing h:

ESC-u Undo (toggle) search highlighting.

In most terminals, it should be equivalent to Alt+U.