Shell - How to find directory of some command?

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

    ~$ echo $PATH
    /home/jack/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    ~$ whereis lshw
    lshw: /usr/bin/lshw /usr/share/man/man1/lshw.1.gz
    

提交回复
热议问题