Windows 10 PowerShell 中的 bash/shell/UNIX-terminal 命令 'which' 等效于什么?
What is the equivalent to the bash/shell/UNIX-terminal command 'which' in Windows 10 PowerShell?
如何使用 PowerShell
检查程序的可执行文件所在的位置?
在 bash
shell 中(例如 Python):
$ which python
/c/Users/user/.pyenv/pyenv-win/shims/python
我为此使用 Get-Command
cmdlet(简称 gcm
):
gcm python
如何使用 PowerShell
检查程序的可执行文件所在的位置?
在 bash
shell 中(例如 Python):
$ which python
/c/Users/user/.pyenv/pyenv-win/shims/python
我为此使用 Get-Command
cmdlet(简称 gcm
):
gcm python