我使用yum install ethtool ,然后使用rpm -e --nodeps ethtool将其删除,因为当我尝试用yum删除ethtool ,它将删除一些重要的依赖项,如php , httpd etc 。
当我运行任何不应该存在的命令如fakecommand我得到这个消息:
[root@test sbin]# fakecommand -bash: fakecommand: command not found [root@test sbin]#
但是,在用rpm -e --nodeps ethtool删除它之后试图运行ethtool ,我得到No such file or directory而不是No such file or directory :
[root@test sbin]# ethtool -bash: /sbin/ethtool: No such file or directory [root@test sbin]#
要解决这个问题,你所要做的就是重新启动ssh连接。 原来,这只是一个客户端caching。