Windows/where

From Omnia
Revision as of 21:07, 18 July 2026 by Kenneth (talk | contribs) (Created page with "== Show where command in path lives == == where in command shell == Command Shell: # where <exe> where gh C:\Program Files\GitHub CLI\gh.exe == powershell version == Powershell the 'where' has a different meaning, if you still want to use where, just append .exe where.exe gh Power Shell Version: # get-command <exe> <pre> PS CL\> get-command gh CommandType Name Version Source ----------- ----...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Show where command in path lives

where in command shell

Command Shell:

# where <exe>
where gh
  C:\Program Files\GitHub CLI\gh.exe

powershell version

Powershell the 'where' has a different meaning, if you still want to use where, just append .exe

where.exe gh

Power Shell Version:

# get-command <exe>
PS CL\> get-command gh

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     gh.exe                                             0.0.0.0    C:\Program Files\GitHub CLI\gh.exe

keywords