Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

WHICH(1)

NAME

which − locate a program file, including aliases and paths (csh only)

USAGE

which [ names ]

DESCRIPTION

Which takes a list of names and looks for the files that would be executed had these names been given as commands.  It expands arguments that are aliased, and searches for them along your path.  Both aliases and path are taken from your .cshrc file. 

DIAGNOSTICS

Which provides a diagnostic for names aliased to more than a single word, or for executable files whose argument names are not found in the path. 

CAUTIONS

A C shell must execute which, since other shells do not know about aliases.  The DOMAIN C shell has a built-in which command.  To use this shell script, explicitly name it /usr/bin/which.  Refer to csh(1) for more information. 

FILES

~/.cshrcsource of aliases and path values
 

RELATED INFORMATION

csh(1). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026