Linux Cookbook [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Linux Cookbook [Electronic resources] - نسخه متنی

Carla Schroder

نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
تنظیمات قلم


اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
لیست موضوعات
افزودن یادداشت
افزودن یادداشت جدید

Recipe 1.6. Configuring Your manpath

1.6.1 Problem

You're repeatedly
having trouble finding man pages; using tools from Recipe 1.4, you
find that most of the missing pages are in a directory that

man doesn't seem to know about.
Perhaps a newly-installed program put its man pages in a strange
place, like

/opt/man . Or perhaps you want to put
some man pages in a nonstandard location. How do you configure

man to find them?

1.6.2 Solution

Edit /etc/manpath.config.

Suppose the directory you want to add is
/opt/man. Add /opt/man to

# every automatically generated MANPATH includes
# these fields
MANDATORY_MANPATH /usr/share/man
MANDATORY_MANPATH /usr/local/man

And you're done. Now man will
find the man pages in the new directory.

When you create a custom man page directory, be sure to include the
section directories:

$ ls /opt/man/local
man1 man2 man3 man4 man5 man6 man7 man8 man9

It's not necessary to include all the numbered
sections, just the ones pertinent to the man pages
you'll be storing there.

If you're going to have subdirectoriesfor
example, /opt/man and
/opt/man/localbe sure to list them in
this order:

MANDATORY_MANPATH                   /opt/man/local

Subdirectories must be listed before parent directories, or they will
be overlooked by the man viewer.

1.6.3 Discussion

You can run manpath with no options to see your current

$ manpath

1.6.4 See Also

  • manpath(1) ,


/ 435