Can I exclude keywords?

The man -k command itself does not have a built-in option to exclude keywords directly. However, you can achieve this by piping the output to the grep command to filter out unwanted keywords.

For example, if you want to search for "copy" but exclude results that contain "move," you can use:

man -k copy | grep -v move

In this command:

  • man -k copy lists all manual pages related to "copy."
  • grep -v move filters out any lines that contain "move," effectively excluding those results from the output.

0 Comments

no data
Be the first to share your comment!