Shell - How to find directory of some command?

前端 未结 7 858
既然无缘
既然无缘 2020-12-04 06:56

I know that when you are on shell, the only commands that can be used are the ones that can be found on some directory set on PATH. Even I don\'t know how to see what dirs a

相关标签:
7条回答
  • 2020-12-04 07:22

    In the TENEX C Shell, tcsh, one can list a command's location(s), or if it is a built-in command, using the where command e.g.:

    tcsh% where python
    /usr/local/bin/python
    /usr/bin/python
    
    tcsh% where cd
    cd is a shell built-in
    /usr/bin/cd
    
    0 讨论(0)
提交回复
热议问题