Link to home
Start Free TrialLog in
Avatar of cfgo
cfgo

asked on

Get man page for local file

I have a man page in a local directory (apcupsd.man) that I'd like to view with "man".  After appending the current directory to MANPATH (using MANPATH="$MANPATH:."), I tried "man apcupsd" and also "man -f apcupsd", but man can't seem to be able to grab this local file and display it.  

How can I display this local file using man?

Thanks!

Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Hi cfgo,

Depending on the distro, try this:

man -M {path} apcupsd



Good Luck,
Kent
try moving  apcupsd.1 to ./man1/apcupsd.1
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cfgo
cfgo

ASKER

Kdo:  when I tried "man -M /mnt/hdb4/Z/DownloadedSources/APCShutdown/apcupsd-3.14.2/doc apcupsd", I still get:  "No manual entry for apcupsd"

ozo:  That turned out to be a good solution, but the actual name of the file is apcupsd.man, so "man ./apcupsd.man" is what actually worked.

Thank you.