gnu-which
« Back to VersTracker
Description:
GNU implementation of which utility
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: cli utilities coreutils shell development
Install: brew install gnu-which
About:
GNU which is a utility that locates and displays the full path of executable files in a user's PATH environment variable. It helps resolve ambiguities by showing exactly which version of a command will be executed, supporting shell aliases and functions. This tool is essential for debugging shell scripts and understanding command precedence.
Key Features:
  • Shows absolute paths of executables
  • Resolves shell aliases and functions
  • Supports multiple shell syntaxes
  • Provides colorized output options
Use Cases:
  • Debugging shell script path resolution issues
  • Verifying which version of a tool is being executed
  • Checking if required commands are installed and accessible
Alternatives:
  • type – Built-in shell command with similar functionality but less portability
  • command -v – POSIX standard built-in, more portable but fewer features
Version History
Detected Version Rev Change Commit
Sep 11, 2025 1:16pm 0 VERSION_BUMP d69f527d
Sep 13, 2024 11:55am 0 VERSION_BUMP a936f490