locate(1) CLIX locate(1)
NAME
locate - Identifies a UNIX system command using keywords
SYNOPSIS
[help] locate [keyword ...
DESCRIPTION
The locate command is part of the UNIX system Help Facility, and provides
online assistance in identifying UNIX system commands.
Without arguments, the initial locate screen is displayed. From this
screen, users may enter keywords functionally related to the action of the
UNIX system commands they wish to have identified. A user may enter
keywords and receive a list of UNIX system commands whose functional
attributes match those in the keyword list, or may exit to the shell by
typing q (for ``quit''). Users who want to display the contents of a file
might enter the keywords print and file. The locate command would then
display the names of all commands related to these keywords.
Keywords may also be entered directly from the shell, as shown above. In
this case, the initial screen is not displayed, and the resulting command
list is displayed.
More detailed information on a command in the list produced by locate can
be obtained by accessing the usage module of the UNIX system Help
Facility. Access is made by entering the appropriate menu choice after
the command list is displayed.
From any screen in the Help Facility, a user may execute a command with
the shell (sh) by typing an ! and the command to be executed. The screen
will be redrawn if the command that was executed was entered at a first
level prompt. If entered at any other prompt level, only the prompt will
be redrawn.
By default, the Help Facility scrolls the data that is presented to the
user. If you prefer to have the screen clear before displaying the data
(nonscrolling), the shell variable $SCROLL must be set to no and exported
so it will become part of your environment. This is done by adding the
following line to your .profile file (see profile): ``export SCROLL ;
SCROLL=no''. If you later decide that scrolling is desired, $SCROLL must
be set to yes.
Information on each of the Help Facility commands (starter, locate, usage,
glossary, and help) is located on their respective manual pages.
EXAMPLES
To find out the names of all commands related to the keywords display and
2/94 - Intergraph Corporation 1
locate(1) CLIX locate(1)
file, enter the following:
locate file print
CAUTIONS
If the shell variable $TERM (see sh) is not set in the user's .profile
file, then $TERM will default to the terminal value type 450 (a hard-copy
terminal). For a list of valid terminal types, refer to term.
EXIT VALUES
The locate command exits with a value of 0 if successful and 1 if an error
occurs.
RELATED INFORMATION
Commands: glossary(1), help(1), sh(1), starter(1), usage(1)
Miscellany: term(4)
2 Intergraph Corporation - 2/94