determining what's in the base system
bsd.talk at gmail.com
Wed Apr 16 16:34:08 UTC 2008
On Tue, Apr 15, 2008 at 4:59 PM, Chad Perrin <perrin at apotheon.com> wrote:
> That's more the sort of answer I was expecting, but seems less easily
> employed than just using `which` to determine whether something's located
> under /usr/local.
It just occurs to me to mention that "which" searches the user's PATH and
reports back the first instance of the executable it finds. So you'd
potentially get different results for different users on the same system,
and it doesn't tell you that something isn't installed or located in more
than one place, it just tells you where the *first* instance of it was
found. You might say "which bash" and get a result of '/usr/bin/bash'
...and meanwhile there might also be '/usr/local/bin/bash' but it won't
tell you that. The 'locate' command could be useful too, but it depends on
how complete the locate database is. Anyway...
More information about the freebsd-questions