Skip to content

Instantly share code, notes, and snippets.

@GitarPlayer
Last active May 18, 2022 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GitarPlayer/221a06bab1c96de9874b2e39b1872430 to your computer and use it in GitHub Desktop.
Save GitarPlayer/221a06bab1c96de9874b2e39b1872430 to your computer and use it in GitHub Desktop.

To look through all man pages for a string there are two options

  1. loop through the manpages files with find, xargs and zgrep:
find $(manpath|tr ':' ' ') -type f -print0 | xargs -0 zgrep -i '\.config/systemd'
  1. simply use man -K notice the capital K:
man -K '.config/systemd'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment