Linux man 2,3 quick reference
I wrote a script to extract the useful “synopsis” section, from Linux man pages in sections 2 and 3, the syscalls and library calls. This can be good to see what calls there are, and to refresh your memory.
dpkg -L manpages-dev | grep -ie 'man[23]/' | sort | while read file; do if [ -L "$file" ]; then continue; fi man -l "$file" | sed -n '0,/DESCRIPTION\|Feature Test/p' | grep -v -e '^[ \t]*$' -e '^[^ \t]' -e 'Feature Test' | sed 's/^[ \t]*//' echo done