What is Windows' equivalent of the "which" command in Unix? Is there an equivalent PowerShell command?
Fresh3 days ago
Mar 15, 202691698 viewsConfidence Score1%
1%
Problem
In Linux, we have the "which" command to find out the path of an executable. What is its Windows equivalent? Is there any PowerShell command for doing that?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: What is Windows' equivalent of the "which" command in Unix? Is there an equivalent PowerShell command?
Low Risk
Newer versions of Windows (I think Windows 2003 and up) have the where command: And for PowerShell, explicitly add the .exe suffix:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix