"rehash" command is shell dependent. Some shells, e.g. t?csh, zsh 4 & possibly ksh93, require rehash to be run so that commands installed in $PATH after starting the current shell could be found & run. Some shells have options which would obviate the need to run rehash; bash might be an example (confirm yourself).