i spend a significant amount of time reading man pages. as you may know man’s default pager is less(1). So learning to use less(1) more efficiently helps me to better absorb information from manuals. thus i’ve defined a couple of less(1) commands in ~/.lesskey:

# prompt to open man pages
m shell man 
# prompt to search for options e.g. '-o' in `man bash`
o forw-search \ \ \ \ *-

This code needs to be compiled using lesskey(1) which generates the file ~/.less.

The first command m opens man pages. say i’m in fork(1) man page and want to jump to wait(2) man page. to do this i can type mwait.

The second command searches for options. e.g. to find out what bash ‘-a’ option does, open bash manual and use oa.