Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.