Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am packaging an application with a bunch of executable accepting roughly the same arguments. I would like to write (and provide) only one manpage with common explanations and the list of arguments.

In short, I would like that

man execFoo
man execBar

point to the same page.

I know how to generate two identical execFoo.1 and execBar.1 but these seems suboptimal. Since I plan to release this package for Debian, solutions relying on Debian packaging chain (such as dh_installmake) would also be fine.

share|improve this question
up vote 12 down vote accepted

Why not simply create one manpage and make the others links? That's how most, if not all, such programs do it. For example:

$ ls -l /usr/share/man/man1/[ef]*grep.1.gz 
lrwxrwxrwx 1 root root 9 Nov 27  2013 /usr/share/man/man1/egrep.1.gz -> grep.1.gz
lrwxrwxrwx 1 root root 9 Nov 27  2013 /usr/share/man/man1/fgrep.1.gz -> grep.1.gz

As you can see above, egrep and fgrep are links to the main grep man page which is why man egrep brings up man grep.

share|improve this answer
That is in fact the recommended method. The alternative, which is mentioned as "deprecated" in some manuals, is to use a .so request to include the referenced manpage – Simon Richter Jul 9 '14 at 14:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.