NavigationCLI Manual
$which
Locate the executable binary path of a command in system PATH.
BefehlssyntaxPOSIX Standard
which [OPTIONS] [COMMAND...]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Ü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 / Option | Description |
|---|---|
| -a | Print all matching pathnames of each argument across PATH. |
Praktische Anwendungsbeispiele
#1Find where python3 or grep is installed
which grep python3Outputs the binary paths in /usr/bin or /bin.
Verwandte Linux-Befehle
$findDateioperationen
Durchsuchen Sie Verzeichnishierarchien nach Dateien basierend auf Name, Typ, Größe oder Änderungsdatum.
$lsNavigation
Verzeichnisinhalte auflisten mit Dateigrößen, Berechtigungen und Zeitstempeln.
$cdNavigation
Wechseln Sie das aktuelle Arbeitsverzeichnis im Dateisystem.
$pwdNavigation
Druckt den absoluten Pfad des aktuellen Arbeitsverzeichnisses.
$treeNavigation
Display directory structure in a recursive visual tree diagram.