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!
How can I display this local file using man?
Thanks!
try moving apcupsd.1 to ./man1/apcupsd.1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Kdo: when I tried "man -M /mnt/hdb4/Z/DownloadedSour ces/APCShu tdown/apcu psd-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.
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.
Depending on the distro, try this:
man -M {path} apcupsd
Good Luck,
Kent