Rehash
From FreeBSDwiki
(Difference between revisions)
m (Reverted edits by 200.29.96.75 (Talk); changed back to last version by Jimbo) |
m (Reverted edits by 76.76.3.121 (Talk); changed back to last version by Jimbo) |
| (One intermediate revision by one user not shown) | |
Latest revision as of 12:35, 24 April 2009
rehash regenerates the system's cached info about what's contained in the system PATH. Commonly needed after installing new applications from the ports tree. Example:
ph34r# cd /usr/ports/net/rsync
ph34r# make install
ph34r# rsync --version
rsync: Command not found.
ph34r# rehash
ph34r# rsync --version
rsync version 2.6.2 protocol version 28
Copyright (C) 1996-2004 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
IPv6, 32-bit system inums, 64-bit internal inums
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.