How to search in man pages
Jump to navigation. It's easy to get into the habit of googling anything you want to know about a command or operation in Linux, but I'd argue there's something even better: a living and breathing, complete reference, the man pages , which is short for manual pages. The history of man pages predates Linux, all the way back to the early days of Unix. Man pages also have a reputation of being terse and, in a way, have a language of their own.SEE VIDEO BY TOPIC: Linux Man Pages Tips and Tricks
SEE VIDEO BY TOPIC: Apropos: Querying ManDB For A List Of Known Man PagesContent:
Managing User Accounts and Groups Overview. Managing User Accounts and Groups Tasks. Working With Oracle Configuration Manager. Managing Services Overview. Managing Services Tasks. Using the Fault Manager. Managing System Information Tasks. Managing System Processes Tasks. Monitoring System Performance Tasks. Managing Software Packages Tasks.
Managing Disk Use Tasks. Scheduling System Tasks Tasks. Managing System Crash Information Tasks. Managing Core Files Tasks. Troubleshooting System and Software Problems Tasks. You can search for information about Oracle Solaris commands in man pages by using the man command.
The new -K uppercase keywords option enables you search all sections of all of the man pages for the specified keywords. The -k option lowercase is limited to searching just the NAME subsection of all of the man page sections. To search for information in man pages by specifying keywords, start by creating index files that can be queried by the man command. You can use the catman utility to create preformatted versions of the online reference manual. Note that you must be the root user to use the catman utility.
The catman utility also includes a -w option. This option enables you to create an index file of man pages in the directories that are specified by the MANPATH variable or when the -M option is used. You can use the -M option of the catman utility to specify an alternate directory to create an index file of third-party man pages. 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.
For a complete description of the catman utility, including all of the command-line options that you can specify, see the catman 1M man page.
To search for information in man pages by specifying keywords, create an index file, or files, by using the catman utility. To conduct a full-text search for information in all of the man page sections by specifying keywords, type the man command with the new -K keywords option, as follows:.
Conducts a full-text search of the specified keywords throughout all of the man page sections. Is a user-defined string that is specified. To specify multiple keywords in single search, use double quotation marks. For example:. To search for information in just the NAME subsection of all of the man pages, type the man command with the -k keywords option, as follows:.
To search a specific man page section, use the -s option with the man command and the -k or -K option. 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. 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.
In the following example, the man -k command is used to search for instances of the init command in the NAME section of all man pages only :. In this example, the output of the man -k command displays the search results for the init command in the NAME subsection of all man page sections only.
Note that any man page that contains init in its name is also included in the search results. In the following example, the man -K keywords command is used to search for instances of the dumpadm command in all of the sections of the man pages. In this example, the search returns three instances of the dumpadm command in the man pages:.
Based on the results of this query, the user knows where additional information about the dumpadm command can be found in all of the man pages. The first instance was found in the bootadm 1M man page.
The second instance was found in the boot 1M man page. For more information about using the man command, see the man 1 man page. Search Scope:. Document Information About This Book 1. Locating Information in Man Pages You can search for information about Oracle Solaris commands in man pages by using the man command. Creating Index Files to Enable the Searching of Man Pages for Specific Keywords To search for information in man pages by specifying keywords, start by creating index files that can be queried by the man command.
Searching for Information in Man Pages by Specifying Keywords To search for information in man pages by specifying keywords, create an index file, or files, by using the catman utility. All rights reserved. Legal Notices.
A very useful aspect of the Linux command line is that the documentation for almost all command line tools is easily accessible. These documents are known as man pages, and you can easily access them through the command line using the man command. In this tutorial, we will discuss the basics of man using some easy to understand examples. But before we do that, it's worth mentioning that all examples in this article have been tested on Ubuntu
Linux man Command Tutorial for Beginners (8 Examples)
While they're not all well-advertised, there are actually a variety of means of getting help under Unix. Man pages correspond to online manuals for programs, file formats, functions, system calls, and so forth. If you've never read one before, the best way to start is by typing 'man man ' at the command line. Of course, while man pages are a vast improvement over the online documentation of most other OSes, they suffer from many failings: some people don't like to read text on the screen not very helpful unless you already know what to look for not always accessible even when present not always present, especially under Linux frequently hard to read, as they try to be authoritative and are therefore often too technical for new users frequently out of date That said, they're still better and more comprehensive than the alternatives. We'll try to address the first three failings in this document. Man pages are the standard documentation for every Unix; you're sure to come across a reference before too long of the form:. Where N is a number from , possibly followed by a letter.
How to Search Man Pages at the Command Line
The man command provides reference information on topics, such as commands, subroutines, and files. The man command provides one-line descriptions of commands specified by name. The man command also provides information on all commands whose descriptions contain a set of user-specified keywords. The man command formats a specified set of manual pages. If you specify a section for the section parameter, the man command searches in that section of the manual pages for the title specified by the title parameter.
The online Reference Manual man pages provide detailed descriptions and usage of the commands. You can use the man command to display the man page entry that explains a given command. The syntax of the man command is as follows. The online man page entries are organized into sections based on the type or usage of the command or file.
How to effectively use Man Pages under Linux
Is it some kind of arcane knowledge, handed down only to initiates after grueling initiations? Well, no. Actually, anyone can learn about Terminal commands, if they know where to look. The key to Terminal wisdom is the man command.
Managing User Accounts and Groups Overview. Managing User Accounts and Groups Tasks. Working With Oracle Configuration Manager. Managing Services Overview. Managing Services Tasks. Using the Fault Manager.
Master the command line: How to use man pages
locate(1) - Linux man page