Query: which
OS: hpux
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
which(1) General Commands Manual which(1)NAMEwhich - locate a program file including aliases and pathsSYNOPSIS[name...]DESCRIPTIONFor each name given, searches for the file that would be executed if name were given as a command, and displays the absolute path of that file. Each argument is expanded if it is aliased, and searched for along the user's path. Both aliases and path are determined by sourc- ing (executing) the user's file.DIAGNOSTICSA diagnostic is given for names that are aliased to more than a single word, or if an executable file with the argument name was not found in the path.EXAMPLESThe command: specifies where the executable program of the sh(1) command is found. For example, the response might be: if the sh(1) being used is located inWARNINGSreports aliases even when not invoked from csh. cannot find built-in commands (e.g., jobs). information may be incorrect because it is unaware of any path or alias changes that have occurred in the current shell session.AUTHORwas developed by the University of California, Berkeley.FILESsource of aliases and path values which(1)