Get man page for local file

Posted on 2007-10-17
Last Modified: 2013-12-16
I have a man page in a local directory ( 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?


Question by:cfgo
    LVL 45

    Expert Comment

    Hi cfgo,

    Depending on the distro, try this:

    man -M {path} apcupsd

    Good Luck,
    LVL 84

    Expert Comment

    try moving  apcupsd.1 to ./man1/apcupsd.1
    LVL 84

    Accepted Solution

    man ./apcupsd.1

    Author Comment

    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, so "man ./" is what actually worked.

    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now