Shell - How to find directory of some command?

前端 未结 7 944
既然无缘
既然无缘 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:21

    The Korn shell, ksh, offers the whence built-in, which identifies other shell built-ins, macros, etc. The which command is more portable, however.

提交回复
热议问题