-5

What does the man -k command display?

  • All man pages in sequence with the given name in all chapters.
  • The man pages with a word in the name.
  • The manual page for the given topic.
  • A list of the man pages discussing the subject.
4
  • You can use man -k '\bman\b' to find the man page of man! Now you know where to look: man man! Oct 1, 2014 at 15:25
  • @VolkerSiegel may I ask for you? How we will find more accurately all .cpp files in the users home directory that were modified no more than 5 minutes ago?
    – qwerty
    Oct 1, 2014 at 15:38
  • You should look for similar questions with answers, and if you do not find one that helps, ask it as a separate question. Answering here does not help anybode else but you, because it can not be found. Oct 1, 2014 at 15:48
  • This question was lifted verbatim from the Linux Foundation 101x course. The question is poorly-worded for the context of the course as it is similar to, but different from, information given previously in the course.
    – dotancohen
    Jan 26, 2015 at 11:12

2 Answers 2

1

from man man lol!

man -k printf
     Search the short descriptions and manual page names for the keyword printf as regular
     expression.  Print out any matches.  Equivalent to apropos -r printf.
-K
   Search for the specified string in all man pages. Warning: this is probably very 
slow! It helps to specify a section. (Just to give a rough idea, on my machine this takes 
about a minute per 500 man pages.) 

9
  • 1
    +1 on man man - there's even more meta-man! (see comment on question) Oct 1, 2014 at 15:27
  • may ask What is displayed when running man with no options other than the topic as an argument?
    – qwerty
    Oct 1, 2014 at 15:29
  • @VolkerSiegel This is a nice man man. thanks Oct 1, 2014 at 15:29
  • @qwerty "What manual page do you want?" Oct 1, 2014 at 15:30
  • no i have ask when running man with no options other than the topic as an argument
    – qwerty
    Oct 1, 2014 at 15:32
0

From http://manpages.ubuntu.com/manpages/lucid/man1/man.1.html

"When you search for manpages with man's -k switch, the entire NAME line of every manpage is searched and the results (if any) are displayed."

See http://manpages.ubuntu.com/manpages/lucid/man1/man.1.html for details.

1
  • this means the manual page for the given topic or a list of the man pages discussing the subject???
    – qwerty
    Oct 1, 2014 at 15:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .