Shell Commands/Which

From MorphOS Library

Revision as of 13:47, 3 March 2015 by JPV (talk | contribs) (Created page with "'''Which''' - Searches the command path for a particular item FILE/A, NORES/S, RES/S, ALL/S <nowiki> FILE - Name of the command, program or directory to find...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

Which - Searches the command path for a particular item

FILE/A, NORES/S, RES/S, ALL/S

FILE  - Name of the command, program or directory to find                      
NORES - Switch: Do no search the resident list
RES   - Switch: Only search the resident list
ALL   - Continues the search through the full search path, find and list
        all locations of a command or program.
        May lead to multiple listings of the same command if
        that command is reached by more than one route
        (such as C: and the current directory).

Example:

  MorphOS:> Which devlist
  MorphOS:morphos/c/DevList