whereis

freebsd
/usr/bin/whereis
locate だと HDDの全部が検索範囲だが whereis は

The default path searched is the string returned by the sysctl(8) utility for the ``user.cs_path'' string, with /usr/libexec, /usr/games and the current user's $PATH appended. Manual pages are searched by default along the $MANPATH. Program sources are located in a list of known stan-dard places, including all the subdirectories of /usr/src and /usr/ports.

ということで、/usr/libexec, /usr/games,$PATH,$MANPATH,/usr/src and /usr/ports を探す.

書式:

whereis [-abmqsux] [-BMS dir ... -f] program ...

使い方:
実は、ports を探すのに使える

whereis lsof

でも曖昧検索はできない.そういうときは定番の make search

cd /usr/ports
make search name=lsof

さらに詳細な検索をする場合は、以下のようにとのこと.

もっと詳細な検索をするには、 make search key=string と入力してください。 string の部分には検索したいテキストを入れます。 port 名、コメント、説明文および依存情報が検索されます。 探しているプログラムの名前を知らない場合でも、 ある目的に関連した ports の検索に利用できます。

リファレンス:
FreeBSDハンドブック 4.5. Ports Collection の利用
http://www.freebsd.org/doc/ja_JP.eucJP/books/handbook/ports-using.html