Run a man inquiry as follows:
$ man -a -Pless mkfifo
There is both a mkfifo command and a mkfifo function. You'll be looking at the mkfifo command from section 1 of the manual. Note MKFIFO(1) at the top of the page.
Press the letter q to terminate the pager program. The pager is then invoked again and displays the mkfifo function from section 3 of the manual. Note MKFIFO(3) at the top of the page.
Run the man command again, using the -Pmore option as follows:
$ man -a -Pmore mkfifo
-
What differences do you see in the output?
-
What does the -P option do?
Enter the following command:
$ locate whois
Note that locate shows two commands that match whois, along with a directory and a README file.
Now use the stat program to evaluate the two commands:
$ stat /usr/bin/whois /usr/bin/fwhois
Examine the inode number for both files. An inode is a unique identifier, or node, of your Linux filesystem. The fact that these two files show the same inode indicates that they are links to the same file. That is, one file has two directory entries with different names. This means that you'll be running the same program regardless of which command name you use.
Next, examine the README file that locate reported:
$ less /usr/doc/fwhois-1.00/README
Your version may be different. Now look for a manpage and an info page for this program:
$ man fwhois $ info fwhois
As you can see, the program author chose not to offer a manpage or an info page for fwhois, leaving the README in /usr/doc as the sole documentation for the program.