Name is also included in the search results.Įxample 1-2 Searching for Commands in All Man Page Sections by Specifying Keywords Note that any man page that contains init in its Results for the init command in the NAME subsection of all man In this example, the output of the man -k command displays the search Init.d - initialization and termination scripts for changing init states inittab(4) "NAME" /usr/share/man/man4/inittab.4ģ. Init, telinit - process control initializationĢ. init(1m) "NAME" /usr/share/man/man1m/init.1m Of the init command in the NAME section of all man pages only: $ man -k initġ. In the following example, the man -k command is used to search for instances For example, if you query the word “searching,” the words “search,” “searches,” and “searched,” are also included in the search results.Įxample 1-1 Searching for Commands in the NAME Subsection of All Man Pages by Specifying Keywords The man command normalizes keywords before conducting a search, which means a query for a specified keyword also generates results for all words that include part of that word. The command syntax that is used for searching man pages by using the man command with either the -k or -K option is not case-sensitive. Note the following additional key information about the man command: Note - Keywords are contained within double quotation marks. 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 |