Unix/linux System Management Technical Manual Read (vii)

Source: Internet
Author: User

2016.8.22 9:00-9:40

The keywords database can become out of date. If You add additional mans pages to your system, the need to rebuild this file with Mandb (Ubuntu, SUSE), Makewhatis (R Ed Hat), or catman-w (Solaris, HP-UX, AIX).

keyword refers to a library that may have expired. If you want to add a man manual page to your system, you need to construct the library file, use the MANDB command on Ubuntu, SUSE, use the Makewhatis command on Red Hat, and use the CATMAN-W command on Solaris, HP-UX, and Aix.

1.9.3 Storage of Mans pages

1.9.3 manual page Save

Nroff input for mans pages is usually kept in directories Under/usr/share/man. Linux systems compress them with gzip to save space. (The man command knows how to uncompress them on the fly.) The man command maintains a cache of formatted pages In/var/cache/man Or/usr/share/man if the appropriate directories AR e writable, but this is a security risk. Most systems Preformat The man pages once at installation time (see Catman) or not at all.

the Nroff input for the man page is usually saved in multiple directories under/usr/share/man/. The Linux system compresses them with gzip to save space (the command man knows how to decompress them on the spot). If there is write access to the appropriate directory under/var/cache/man or/var/share/man, then the command man maintains a cached cache of a formatted manual page there, but there is a security risk. Most systems preprocess the manual page format (refer to the Catman command) at the time of installation, or do not preprocess at all.

Solaris understands mans pages formatted with SGML in addition to the traditional nroff. The SGML pages has their own section directories Underneath/usr/share/man.

In addition to the traditional Nroff format, Solaris also supports manual pages in SGML format. SGML Format manual Page The directories of the relevant sections are under/usr/share/man.

The man command can search several mans page repositories to find the manual pages and you request. On Linux systems, you can find out the current default search path with the Manpath command. This path (from Ubuntu) is typical:

The command man will look for a manual page in several different directories for the user's needs. On Linux systems, users can use the Manpath command to determine the search path. This search path (in Ubuntu) is generally;

ubuntu$ Manpath

/usr/local/man:/usr/local/share/man:/usr/share/man

If necessary, you can set your MANPATH environment variable to override the default path:

Export Manpath=/home/share/localman:/usr/share/man

If necessary, users can set their own environment variable Manpath to override the default path;

Some Systems Let's set a custom system-wide default search path for mans pages,

which can useful if you need to maintain a parallel tree of man pages such as

Those generated by openpkg. If you want to distribute local documentation in the form of mans pages, however, it is simpler to use your system ' s Standa RD packaging mechanism and to put mans pages in the standard man directories. See Chapter, Software Installation and Management, for more details.

Some systems allow users to set up a custom system-level default search path for the man page, which can be used if the user wants to maintain a parallel set of man-manual page trees (such as a tree created by openpkg). However, if a user wants to publish a local document in the form of a manual page, it is simpler to package it with a standard packaging mechanism for the system and place the manual pages in the standard man directory. Refer to Chapter 12th for more information on software installation and management.


This article is from the "Zhao Dongwei blog" blog, make sure to keep this source http://zhaodongwei.blog.51cto.com/4233742/1840984

Unix/linux System Management Technical Manual Read (vii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.