Fixing the command “man” in OSX

apple-imageThe command ‘man’ in terminal has an annoying feature: it clears the screen on exit. So if you find a command line switch you want to try, when you exit man the detail all disappears.

To correct this, change the following line in /private/etc/man.conf:

PAGER    /usr/bin/less -is

to

PAGER    /usr/bin/less -isX

2 comments

  1. Read any UNIX man page in OS X as a pdf in preview

    man -t | open -f -a preview

Comments are closed.