Refresh the memory of bash

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.