Are there any tricks/sites/methods to use the linux man command in a more convenient way ? I love commands in terminal but for some strange reason I preferred to type man in firefox then in the terminal. The output is so long and I have to scroll forever to find what I need. Also the lack of example is a headache.
4 Answers
Assuming your man pager is less, you can search for regexes by using /. For example, to search for examples in man find, type /^examples. You can use page-up and page-down and other usual navigation keys to move around.
- 111,445
You can try xman which is a GUI man page viewer on almost all systems. Others must exist as well.
Some Linux distros still keep info pages, which are a hypertext sort of replacement for man pages. It never got much traction, so not all commands have info pages. I never liked them personally but you may like them. Look at the info, pinfo or even tkinfo commands.
Remember that man uses nroff underneath (groff on Linux) and it can target a small subset of output types. I find postscript output useful, either with ghostview/kghostview on screen, or just dumping to a printer. I think the -t flag in most distros will dump to postscript. Or maybe the sequence -p -Tps.
- 32,350
Try installing man2html. This will allow you to browse the man pages in Firefox or whatever browser you want to use.
- 11,345
- 2
- 28
- 25