How do I clear Bash’s cache of paths to executables?

Bash does cache the full path to a command.

To clear the entire cache:

$hash -r

Or just one entry:

$hash -d filesync

To clear just one entry you need a different flag:

$hash -d filesync

The -r flag always delete the entire cache.

Please follow and like us:

You may also like...

Leave a Reply

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

Time limit is exhausted. Please reload the CAPTCHA.