Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2000 22:40:08 -0500 (EST)
From:      David Raistrick <keen@damoe.wireless-isp.net>
To:        Tim McMillen <timcm@umich.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Command not found.
Message-ID:  <Pine.BSF.4.21.0011092237510.78914-100000@damoe.wireless-isp.net>
In-Reply-To: <Pine.SOL.4.10.10011092208320.2751-100000@choplifter.gpcc.itd.umich.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Nov 2000, Tim McMillen wrote:

> Why do i have to run rehash to allow the command to be found even though
> it is in the correct place?  Thanks,

Rehash causes your shell to refresh its "cache" of available commands.

Instead of having to search the disk each time you type a command, the
shell builds a cache of available commands at login.

Rehash tells it to rebuild this cache.  Since the command was not there
when the cache was built, the shell doesnt know how to find it.

later...david
--
David Raistrick		Digital Wireless Communications
davidr@dwcinet.com





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011092237510.78914-100000>