From owner-freebsd-questions Thu Nov 9 19:28:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id 2D77537B479 for ; Thu, 9 Nov 2000 19:28:52 -0800 (PST) Received: from localhost (dan@localhost) by java.dpcsys.com (8.10.0.Beta12/8.10.0.Beta12) with SMTP id eAA3Txw28663; Thu, 9 Nov 2000 19:29:59 -0800 (PST) Date: Thu, 9 Nov 2000 19:29:59 -0800 (PST) From: Dan Busarow To: Tim McMillen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Command not found. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 9 Nov 2000, Tim McMillen wrote: > Hi, if anybody could answer this i would appreciate it. When I install > something from the ports, I can verify that the executeable is in > /usr/local/bin and that /usr/local/bin is in my path. But I still get > Command not found error. > I happened to remember that rehash fixed that and it did, but the > manpage for rehash wasn't helpful (it sent me to builtin). I'm using csh. > Why do i have to run rehash to allow the command to be found even though > it is in the correct place? Thanks, csh builds a hash table of all the commands in your path. When you enter a command on the command line the shell looks it up in this hash table. Much faster than searching for the file in all the dirs in your path (not that sh and friends seem all that slow locating commands). rehash rebuilds the hash table on demand when you add new commands. Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message