Which
Which en Linux
Section titled “Which en Linux”Muestra la ruta del ejecutable que se usará según $PATH.
| Comando | Qué hace | Ejemplo |
|---|---|---|
which cmd | Primera ruta de cmd en $PATH. | which python |
which -a cmd | Todas las coincidencias (orden de prioridad). | which -a python |
which pythonwhich -a python# /usr/bin/python# /usr/local/bin/python
which pepe# pepe not foundAlternativas: command -v python o type -a python (built-in del shell; a menudo más fiables).
Docs: man which.