删除卸载的代码块的路径

我通过这些命令(Ubuntu 14.04)卸载codeblocks

 sudo apt-get autoremove codeblocks sudo apt-get --purge remove codeblocks 

之后我运行:

 $ codeblocks bash: /usr/bin/codeblocks: No such file or directory 

这意味着codeblocks仍然存储在某个地方的PATH中。

所以我有几个Q:

  • 我使用正确方法安全卸载所有codeblocks什么?
  • 如果是这样,为什么路径仍然存在(也不是删除路径的卸载过程的一部分)?
  • 我可以手动删除过时路径的文件在哪里?

谢谢。

听起来这个名字仍然存储在bash shell的程序名称缓存中:如果是这样,你可以通过输入删除它

 hash -d codeblocks 

或(清除整个缓存)

 hash -r 

由于hash是shell内置函数,因此它在bash手册页( man bash )下或通过在线帮助函数help hash