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

atheodoreMarch 2nd, 2009 at 3:13 am

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

man -t | open -f -a preview

seanMarch 2nd, 2009 at 12:10 pm

Now that’s cool! Thanks Alex.