Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ which(1) — HP-UX 5.50

Media Vault

Software Library

Restoration Projects

Artifacts Sought

WHICH(1)  —  HP-UX

NAME

which − locate a program file including aliases and paths

SYNOPSIS

which [ name ] ... 

DESCRIPTION

Which takes a list of names and looks for the files which would be executed had these names been given as commands.  Each argument is expanded if it is aliased, and searched for along the user’s path.  Both aliases and path are determined by sourcing (executing) the user’s .cshrc file. 

FILES

~/.cshrcsource of aliases and path values

DIAGNOSTICS

A diagnostic is given for names which are aliased to more than a single word, or if an executable file with the argument name was not found in the path. 

WARNINGS

Which reports .cshrc aliases even when not invoked from csh.

Which will not find csh built-in commands (e.g. jobs). 

Which’s information may be incorrect since it is unaware of any path or alias changes that have occurred in the current shell session. 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

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