Command not in PATH when just installed?
Greg Barniskis
nalists at scls.lib.wi.us
Thu Sep 15 11:23:06 PDT 2005
Dan Nelson wrote:
> In the last episode (Sep 15), Ugo Bellavance said:
>
>> I'm new on this list. I tried looking at the archive, but I
>>didn't know how to formulate my search. Here is my question:
>>
>>I install a package using pkg_add. Then I try running the command,
>>but it doesn't work. I logout, I login, then it works. Is this a
>>FAQ or a setting?
>
>
> Some shells cache the command list in PATH for performance. Try
> running "rehash" and see if the command appears.
>
That'll do it. To answer your question more specifically (is this a
FAQ?)... Not really, but the occasional need for the rehash command
is mentioned in the FreeBSD Handbook section on using ports:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
and in the article for new users:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/new-users/index.html
Each of which (and of course other handbook sections and articles)
may help you get more out of your system. Enjoy!
--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
<gregb at scls.lib.wi.us>, (608) 266-6348
More information about the freebsd-questions
mailing list