Userbible man t cp manpageps

To find out more about the use of the man command, you can, of course, look at its man page:

[email protected]ble:~> man man

To search for a man page, you can use the man command with the -k (keyword) option:

This will list one sentence summaries of man pages that are relevant to the word copy. It does this by searching a database of man page summaries known as the whatis database. You can use this summary to determine which man page you may want to view in full.

Another command that does essentially the same thing is the apropos command, which searches the same database of available man pages used by the man -k command, looking for a specified phrase. An equivalent example of using apropos is the following:

[email protected]:~> apropos copy

Working with man Page Sections

On Linux systems, man pages are divided into ten general sections according to the type of information that they provide. The ones that you are most likely to use frequently are sections 1 (User Commands), 5 (File Formats), and 8 (System Administration). man pages are stored under a single directory hierarchy, the directory /usr/share/man on Linux systems. (Older Linux and other Unix-like systems often store these under the directory /usr/man.) Each section has its own subdirectory — for example, man1, man2, man3, and so on.

Table 5-1 lists the man pages sections and their corresponding types of information.

Was this article helpful?

0 0

Post a comment