Sunday, April 08, 2007

Determine the Manual Page for a Given Command

Today I was searching for options associated with the UCB/SunOS's version of ps. I wanted the man page for /usr/ucb/ps, not /usr/bin/ps. Here's how I discerned between the two ps man pages.

#whatis ps
returns (1) /usr/bin/ps
and
(1b) /usr/ucb/ps

This is equivalent to the whatis command
#man -f command

Here's the man page for /usr/ucb/ps
#man -s1b ps

By the way, I was looking for /usr/ucb/ps -aux

No comments: