![]() ![]() Page section, you would type the following command: $ man -s 1m -K "cpu usage" $ man -s manpage-section -K " keywords"įor example, to search for the keywords “cpu usage” in the 1M man To search a specific man page section, use the -s option with the Where SECTNAME can be any of the following subsections in all of the Man pages, include the SECTNAME in the man -K keywords command syntax, as To search for information in a specific subsection of all of the Man pages, type the man command with the -k keywords option, as To search for information in just the NAME subsection of all of the To specify multiple keywords in single search, use double quotation marks. Is a user-defined string that is specified. Sections by specifying keywords, type the man command with the new -K keywordsĬonducts a full-text search of the specified keywords throughout all of the man page sections. To conduct a full-text search for information in all of the man page For instructions, see Creating Index Files to Enable the Searching of Man Pages for Specific Keywords. To search for information in man pages by specifying keywords, create an indexįile, or files, by using the catman utility. Searching for Information in Man Pages by Specifying Keywords Options that you can specify, see the catman(1M) man page. If the MANPATH variable or the -M option is not specified, index files are created for the both the /usr/share/man/ and /usr/gnu/share/man directories.įor a complete description of the catman utility, including all of the command-line wĬreates an index file in the directories that are specified by the MANPATH variable or with the -M option. If the -M option is specified, the directory argument must not contain a comma ( ,) because a comma is used to delineate section numbers in man pages. Updates the man pages that are located in the specified directory, which is /usr/share/man by default. In the /usr/local/share/man directory, you would type the following command: # catman -M /usr/local/share/man -w -M directory To specify an alternate directory, type the following command: # catman -M directory -wįor example, to create an index file for man pages that are located The man pages that are located in the /usr/share/man and /usr/gnu/share/man directories. When used without any options, the catman utility creates an index file of YouĬan use the -M option of the catman utility to specify anĪlternate directory to create an index file of third-party man pages. This option enables you toĬreate an index file of man pages in the directories that are specifiedīy the MANPATH variable or when the -M option is used. The catman utility also includes a -w option. Must be the root user to use the catman utility. Man pages that are in the /usr/share/man and usr/gnu/share/man directories. Used without any options, the catman utility generates index files of the The catman utility to create preformatted versions of the online reference manual. Index files that can be queried by the man command. To search for information in man pages by specifying keywords, start by creating Creating Index Files to Enable the Searching of Man Pages for Specific Keywords The -k option (lowercase) is limited to searching just the NAME subsection ofĪll of the man page sections. ![]() Search all sections of all of the man pages for the specified keywords. The new -K (uppercase) keywords option enables you ![]() You can search for information about Oracle Solaris commands in man pages by ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |