Refresh the memory of bash

ript>

Suppose you have the same utility in two different places in your filesystem, one installed by a package you don’t really need since you have just installed the same files from source (but in a different directory). You promptly uninstall the packaged version, but when you try to run the utility, you get something like this:

bash: /usr/bin/utility: No such file or directory

The shell is still looking to find the old version!

To refresh the memory of bash, just run the command:

hash -r

and after that, when you rerun the utility, the new version will appear.


Visit The Light of the LAMP blog for more…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.