Windows/where

From Omnia
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