Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? AmigaOne
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

Purpose: To search the command path for a particular item.
Format: WHICH <command> [NORES] [RES] [ALL] [QUIET] [NOREQ]
WHICH enables you to find a particular command, program, or directory by entering its name. If the named item is in the search path, WHICH displays the complete path to that item. WHICH lists resident commands as 'RESIDENT' and internal commands as 'INTERNAL'.

Normally, WHICH searches the resident list, the current directory, the command path(s), and the C: directory. The condition flag is set to 5 (WARN) if the file is not found.

If the NORES option is specified, the resident list is not searched. If the RES option is specified, only the resident list is searched.

The ALL switch causes the search to continue through the full search path, even after one or more examples of the named item have been found and listed. This ensures that all versions of a command or program are found. It can, however, lead to multiple listings of the same command, if that command is reached by more than one route (e.g. C: and the current directory).

The QUIET option, if specified, will suppress error and output messages, while the NOREQ option, if specified, will suppress any requesters.

Example 1:

3.OS4:> WHICH avail

Example 2:

3.OS4:> WHICH C:

Example 3:

3.OS4:> WHICH alias

Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.

Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.