我怎样才能找出firefox bin在哪里?

ber*_*436 5 osx filesystems path firefox

我正在尝试将 Firefox 添加到我的 PATH 中,就像在教程中一样。我的 mac book air 上 GUI 的 Applications 文件夹中有 Firefox。我熟悉在我的路径中添加位置。但我不知道如何在我的机器上找到 firefox 可执行文件。应用程序文件夹去哪里寻找 Firefox 可执行文件?

200*_*ess 10

二进制文件将在应用程序包内。例如,

$ file /Applications/Firefox.app/Contents/MacOS/firefox-bin 
/Applications/Firefox.app/Contents/MacOS/firefox-bin: Mach-O universal binary with 2 architectures
/Applications/Firefox.app/Contents/MacOS/firefox-bin (for architecture x86_64):Mach-O 64-bit executable x86_64
/Applications/Firefox.app/Contents/MacOS/firefox-bin (for architecture i386): Mach-O executable i386
Run Code Online (Sandbox Code Playgroud)

可以通过运行启动Firefox /Applications/Firefox.app/Contents/MacOS/firefox,你可以/Applications/Firefox.app/Contents/MacOS你的$PATH,帮你节省一些打字。但是,从命令行启动应用程序的 Mac OS X 方式是

open -a Firefox
Run Code Online (Sandbox Code Playgroud)

open(1)是一个与Launch Services交互的命令行工具。