How to find where Firefox was installed?

A newbie question no doubt, but I need to tell Aptana where to find Firefox. I tried:
$ whereis -a firefox
Too many results and disorganized. Then I tried:
$ locate firefox
Still a lot of results but only one per line, so easier to read but no luck.

Know a simple way to do this? I'd appreciate it.
Devin.
 
% whereis firefox
% which firefox

locate(1) won't find it until /etc/periodic/weekly/310.locate has run, which is only once a week.

There's also
% pkg_info -L firefox-4.0.1,1
 
Thanks, I found the executable file at
/usr/local/lib/firefox3/firefox

$ whereis
Too many results.

$ which
Returned nothing?

$ pkg_info -L firefox-3.6.13,1
Too many results.

$ locate firefox-3.6.13,1
Only five results.

From there I tracked down the install and deinstall programs, which eventually led me to the execute program.
Thanks again.
 
Executables installed from ports will mostly end up in /usr/local/bin. Firefox is there, or at least that's the normal path to it:
Code:
% whereis firefox
firefox: /usr/local/bin/firefox /usr/ports/www/firefox
What do you mean by "too many results"?

Code:
% which firefox
/usr/local/bin/firefox

which is a builtin for csh(1), so might require a rehash after installing something new.
 
daringturtle said:
$ whereis
too many results
[...]
$ pkg_info -L firefox-3.6.13,1
too many results
[/quote]
Let me introduce you to [man=1]grep[/man] and piping, e.g.:
[cmd=%]command | grep pattern
 
Back
Top