ubuntu 怎么删除像nginx这样的全局命令?-灵析社区

HAO起起

之前通过apt装了nginx,现在想要彻底卸载,使用了apt purge nginx,nginx相关的目录也删了,但是现在还留着一个全局命令nginx(现在运行nginx命令会提示 `-bash: /usr/sbin/nginx: No such file or directory`),这个要怎么删除? 我翻了`/etc/profile`,里面没有nginx相关的配置,`~/.bashrc` 配置里也没看到相关的

阅读量:126

点赞量:0

问AI
sssssjkl
执行 "hash -r" 清空缓存 "hash -l"查看缓存列表