1823399 Members
2530 Online
109655 Solutions
New Discussion юеВ

enabling keyword in man

 
SOLVED
Go to solution
Shivkumar
Super Advisor

enabling keyword in man

Hi,

How to enable keyword in man on hpux ?

E.g. $man -k pwd

Thanks,
Shiv
5 REPLIES 5
Peter Godron
Honored Contributor
Solution

Re: enabling keyword in man

Shiv,
reading:
man man

gives you :
" Before this option can be used, file /usr/share/lib/whatis must exist. /usr/share/lib/whatis can be created by running catman(1M)."

So catman is the answer
JASH_2
Trusted Contributor

Re: enabling keyword in man

Shiv,

catman -w will create the catalogue of man pages that you want.

Regards,

JASH
If I can, I will!
Ninad_1
Honored Contributor

Re: enabling keyword in man

Hi,

You need to use the catman command to create the whatis database. You can create the whatis database by
catman -w [ Any software installations after this which also install man pages should be followed by the catman -m or catman -w command again ]
do a man catman to understand more.

Regards,
Ninad
Arunvijai_4
Honored Contributor

Re: enabling keyword in man

Hi Shiv,

You need to use "catman"

#catman -w
stdin: not in compressed format

# man catman reads,

By default, catman searches the man*.Z and man* subdirectories under
the following man directories:
+ /usr/share/man
+ /usr/contrib/man
+ /usr/local/man

If MANPATH is set in the environment, the directories given in MANPATH are checked instead of the default. See environ(5) for a description of the MANPATH environment variable.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Raj D.
Honored Contributor

Re: enabling keyword in man

Shiv ,
By defult man -k is enabled.
Further catman can be refered.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "