How do you view a man page you just created?

前端 未结 2 1601
北海茫月
北海茫月 2021-01-27 01:48

Suppose I have a man page, which I just wrote and passed through nroff -man, called command.1

How do I view it with man now? I lo

2条回答
  •  广开言路
    2021-01-27 02:22

    Put the command.1 man page in a new folder called man1. Then, assuming you're in the folder containing the new man1 folder, call the man command like this:

    man -M . command
    

    Replace the dot by the path to the folder containing the man1 folder if you're located elsewhere.

提交回复
热议问题