Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After successfull installing midnight commander with pkg_add - mc i try to load it from shell command "mc", but it did not work. Leaving the root and going root again fixes that problem. The same thing with the other packages. Is there a kind of refresh util or something ?

share|improve this question
up vote 2 down vote accepted

try the rehash command, your shell is most likely keeping a cache of executables within your PATH.

share|improve this answer
this works fine – dima.h Mar 15 '12 at 8:04

Command rehash works with (t)csh shell, with bash you can use hash -r.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.