Date: Thu, 15 Sep 2005 13:19:28 -0500 From: Greg Barniskis <nalists@scls.lib.wi.us> To: freebsd-questions@freebsd.org Cc: Ugo Bellavance <ugob@camo-route.com> Subject: Re: Command not in PATH when just installed? Message-ID: <4329BB30.9090805@scls.lib.wi.us> In-Reply-To: <20050915175556.GB72150@dan.emsphone.com> References: <dgc7rm$3st$1@sea.gmane.org> <20050915175556.GB72150@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4329BB30.9090805>