【问题标题】:What is the equivalent to the bash/shell/UNIX-terminal command 'which' in Windows 10 PowerShell?什么相当于 Windows 10 PowerShell 中的 bash/shell/UNIX-terminal 命令“which”?
【发布时间】:2021-08-20 08:33:16
【问题描述】:

如何使用PowerShell检查程序可执行文件的位置?

bash shell 中(例如对于 Python):

$ which python
/c/Users/user/.pyenv/pyenv-win/shims/python

【问题讨论】:

标签: powershell shell executable


【解决方案1】:

我为此使用Get-Command cmdlet(简称gcm):

gcm python

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-23
    • 2010-09-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多