How do I ask PowerShell where something is?
For instance, "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths.
commandpowershellunix
How do I ask PowerShell where something is?
For instance, "which notepad" and it returns the directory where the notepad.exe is run from according to the current paths.
Best Answer
The very first alias I made once I started customizing my profile in PowerShell was 'which'.
To add this to your profile, type this:
The `n at the start of the last line is to ensure it will start as a new line.