Sunday, 19 August 2018

How to rehash executables in $PATH with bash


The subject says it all, how to rehash the available executables available within one of the $PATHs after having changed things: e.g. removed a binary from one $PATH which is available in another $PATH, changed the $PATH-variable.



Answer



hash -r is what needs to be done. In zsh it is rehash and rehash doesn't exist (by default) in bash.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...