← Back to context

Comment by blueblob

11 years ago

Man pages are nice sometimes but oftentimes they have a lot of options and no examples. For advanced usage of some commonly used commands it's far easier to just look it up online, or perhaps with this tool. Example good man page is ps, and an example difficult to use one is gcc. Even though the gcc man page has all the options, it's very difficult to figure out which ones you need, whereas something like this (or commandlinefu) might show you the exact command you need with a description of how the different flags interact.

My pet hate is man pages where the tool has a lot of options, and in the manual the options are listed neither alphabetically nor by semantic grouping. "Hrm, what does '-l' do. I guess I'll search for it, and hit every other -l along the way..."

  • Yeah, pretty annoying, if you use less as a pager for your manpages, you can try:

      /^[[:blank:]]+-l
    

    but it's kind of annoying that you have to use regular expressions to find what you are looking for faster.

    EDIT: it may work in more (the default pager) but I haven't tried it.