Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

manpages

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hello,

Are the man pages usually stored in the same location, and if so where? I have a little utility, but apparently there are no man pages associated with it. Just hoping really here...
 
They're usually in /usr/share/man and beneath, but you can check with echo $MANPATH. If there are pages to accompany the application, you'll need to add their location to MANPATH. HTH.
 
Hi,
I can advise you two common places.
/usr/local/man , /usr/share/man (or /usr/man).

Don't forget that ; each software can create its own man directory. I wish your utility has a man page.
 
many many thanks for your quick reply(s). are the manpages named after the utility? if so, would it be possible to search in all subdirectorys of, f.ex. /usr/share/man for the name of the utility?
 
Sometimes package util man pages can be found under /usr/local, as crash mentions. I have also seen them located under /opt/<package_name> as in the case of the SE toolkit. Cheers.
 
Most utilities will be in /usr/local or /opt. They should normaly be in a directory titled man and on the same path as the other directories for that utility such as bin & lib.
i.e. /opt/OV/man /opt/OV/lib /opt/OV/bin.

To use the man pages, from your shell when logging in, edit ~/.profile and update the (or add) the MANPATH line.
Should be something like this: -
MANPATH=$MANPATH:/opt/OV/man
Ged Jones

Top man
 
If you log all files to a file, I think you can search faster and easier.

find / -print -name net -prune > /var/tmp/find.log
grep man /var/tmp/find.log
grep man /var/tmp/find.log |grep -i <utility_name>
 
Forgot to mention if you set up a MANPATH variable in .profile, you will need to export it: -
MANPATH=$MANPATH:/opt/OV/man
export MANPATH
Ged Jones

Top man
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top