This question is interesting because normally I would use
where.exe on Windows to find the path to a program on my path. However,
where has an option
/r to recursively search a path. I don't know if there is a pattern or option for
where to properly interpolate for
dir or what? It returns
INFO: Could not find files for the given pattern(s).. I wonder if
dir is built into a dll or something somewhere? Anyways, I have no idea where
dir is. I have a different
dir.exe program from MinGW
C:\MinGW\msys\1.0\bin\dir.exe. That is not the native Windows
dir program though.
Several PowerShell one-liners only return emptiness.
PS> (Get-Command dir).Source PS> Get-Command -Name dir CommandType Name Version Source ----------- ---- ------- ------ Alias dir -> Get-ChildItem
I also wonder if the location is hidden for security purposes or if
dir is merely so ancient and insignificant it's just in memory or something?