Online Linux Terminal Logo
OnlineLinuxTerminal
NavigationCLI Manual

$which

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

BefehlssyntaxPOSIX Standard
which [OPTIONS] [COMMAND...]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

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

Wichtige Optionen und Flags

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

Praktische Anwendungsbeispiele

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

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