Shell / Commands

which

English

Overview

A command for finding where a command's executable is located.

Details

A command that searches the PATH environment variable to locate a specified command's executable. It can't detect a same-named alias or shell function, so the type command is sometimes used instead when a more accurate answer is needed.

More Linux terms