Introducing UNIX and Linux |
Getting startedOverview |
Getting helpThere is an on-line help facility available on UNIX systems. It
goes under the name of manual pages, and the
command to get help is
WHO(1) WHO(1) NAME who - show who is logged on SYNOPSIS who [-mTu] DESCRIPTION If given no arguments, who prints the following information for each user currently logged on: login name terminal line login time OPTIONS ... Do not panic! Although the format looks a bit strange, each
manual page is structured in the same way. First of all, on the top
line is the name of the command followed in parentheses by a number
- the manual pages are divided into volumes,
usually numbered 1 to 8 inclusive. We are concerned principally
with commands in volume 1, which are commands you can type in to
the shell. Other volumes give information on other UNIX utilities,
such as libraries available to language compilers. The top line may
also tell you who wrote the utility, and when it was last updated.
There then follows a sequence of headers (such as
Remember that UNIX commands are usually (though not always)
lower-case, and that if you type them upper-case by mistake, the
machine will not understand you. In the example of
The square brackets indicate that options Worked exampleFind out how to display the current hardware type on which your
system is running by using UNAME(1) UNAME(1) NAME uname - print system information SYNOPSIS uname [-amnrsv] DESCRIPTION ... OPTIONS -m Print the name of the hardware type on which the system is running. ... and thus the command you require is If you are unsure which (if any) command you can use to perform
a particular task, type Worked exampleYou wish to find who else is logged in; which command can you
use?
So you should use command The division of UNIX manual pages into volumes is not part of the POSIX standard, nor is the exact format of a manual page that we describe here. |
Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck