Linux下查找软件的目录位置

通过homebrew或者wget或apt,有时候需要修改配置文件或者启动文件,常常不知道软件的安装位置,很烦恼。

为此我嗖嗖了好多资料,整理了一下方法。

1 whereis nginx

例如whereis ls

2 find / -name nginx.conf

3 which nginx

例如:
which vi
which cat
which只能用来查找path环境变量中出现的可执行文件

posted @ 2020-09-15 23:51  姚狗蛋  阅读(285)  评论(0编辑  收藏  举报