Reading Manpages Like a Pro (2018)
blog.yossarian.net
blog.yossarian.net
1. List all man pages of a specific section (e.g. section 4):
`man -k -s 4 . | sort`
2. Output all possible sections:
`man man | head -25`
3. Sometimes there is no man page but GNU info can be used:
`info ed`
`info emacs`
4. A nice website to explain comands and oneliners is explainshell.com. It can also be queried from a terminal quite conveniently.
5. If you're like me, you'll probably often list all the system calls by listing all the pages in section 2. A better way might be to look at the linux source code directly (choose the right architecture):
https://github.com/torvalds/linux/blob/master/arch/x86/entry...
I wish using man pages felt more like it feels to use Wikipedia.
Any other suggestions? I only looked for a vim plugin since I already use vim, and would rather not add all of emacs just for man, but I wouldn't mind something standalone. Slightly surprised (having only briefly searched 'manpager github') not to find anything though.
https://packages.debian.org/buster/dwww
[1]: https://news.ycombinator.com/item?id=25304257
[2]: https://clig.dev/
Eg: 'apropos time' will list all man pages that matches 'time'.
Whenever I learn something new about a command, I write it in its mann page:
mann -e <command> # Opens editor
And then when I want to view my notes, I just run: mann <command>
[1] http://github.com/soheilpro/mannIf I search for "-f" then I get results for eg, --enable-feces, maybe a bunch of other flags with embedded fs, and a bunch of embedded example commands using those flags before actually getting to the section for -f. I wish there was a special query type that said "this is a flag I'm searching for".
Doesn’t always work but _usually_ gets me closer. Hope this helps disabling the feces.
I was wondering: is there a canonical man page on how to read the synopsis? Nowadays, I know how to read it, but I've never found a canonical place that explained it.
I was puzzled because my man pages are already colorized ;-)
pman() { man -t "$@" | open -f -a Preview; }
This opens a nicely rendered version of a man page in the macOS Preview tool.Use the -e argument to narrow down the results. For example:
apropos -e ls"When you invoke GCC, it normally does..." is painful and should be edited away.
"man is the system's manual pager" you what?