New answers tagged

12

The default man pager is less. If you look at less's help (press h while in it), you'll see: SEARCHING /pattern * Search forward for (N-th) matching line. ?pattern * Search backward for (N-th) matching line. n * Repeat previous search (for N-th occurrence). N * Repeat ...


4

Another way to do this: man -html=firefox find After the manpage opens in firefox, press CTRL + F to search for any character.


5

You need to type \ before you type !, so that it will not be interpreted as a negation regular expression in search.


4

From man man: -K, --global-apropos Search for text in all manual pages. This is a brute-force search, and is likely to take some time; if you can, you should specify a section to reduce the number of pages that need to be searched. Search terms may be simple strings (the default), or regular expressions if the --regex ...


4

This method does not search the entire manpages for a keyword, but only each manpage's title and short description. It will not be enough in your case, but useful to quickly look up something. If it does not return the desired results, you have to use @philsf's answer. You can use the apropos command to quickly search all installed manpages' title and ...


11

This command will show you the filenames of man files that contain the keyword Stallman: zgrep -l Stallman /usr/share/man/man?/* Output in my 15.10 begins with: /usr/share/man/man1/cat.1.gz /usr/share/man/man1/comm.1.gz /usr/share/man/man1/ctags.1.gz /usr/share/man/man1/ctags.emacs24.1.gz Then, you can browse as usual, with man cat, man comm, etc.


0

First reinstall the man-db package, which contains the basic manual infrastructure sudo apt-get install --reinstall man-db Then if an individual man page is missing, reinstall the package of the program in question, which should also contain the man pages. For ls, the package is coreutils.


1

The use of different symbols for opening and closing quote is just a common typographic style. See Wikipedia: Quotation mark - Electronic documents - Typewriters and early computers: Typographically, there are two types of quotation marks: '…' and "…", are known as neutral, vertical, straight, typewriter, or "dumb" quotation marks. The left and ...



Top 50 recent answers are included