Online Linux Terminal Logo
OnlineLinuxTerminal
NavegaciónCLI Manual

$which

Locate the executable binary path of a command in system PATH.

Sintaxis del comandoPOSIX Standard
which [OPTIONS] [COMMAND...]
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

`which` searches the directories listed in your `$PATH` environment variable to find and display the absolute location of an executable binary file.

Opciones y banderas comunes

Flag / OptionDescription
-aPrint all matching pathnames of each argument across PATH.

Ejemplos prácticos del mundo real

#1Find where python3 or grep is installed
which grep python3

Outputs the binary paths in /usr/bin or /bin.