用户在Macos平台上配置文件的时候有时候需要在Mac终端里面配置一些文件,这时候就需要用命令在终端里面打开app应用程序,但是有很多的用户不会使用终端命令,小编为大家提供了一个在终端下打开APP应用程序的教程。
打开终端直接输入open/Applications/xxx(应用的名称).app比如打开iTunes输入:open/Applications/iTunes.app(注意open之后需要空格再输入斜杠/)
Mac下在终端中打开应用程序的命令
from:http://macosx.com/forums/howto-faqs/29520-how-launch-application-terminal.html
Thecommandissimplyopen(whichcanalsobeusedforopeningdirectories).Themostbasicexampleoflaunchinganapplication:
open/path/to/some.app
Morecomplexpossibilitiesalsoexist:
open"/Volumes/MacintoshHD/foo.txt"
opensthedocumentinthedefaultapplicationforitstype(asdeterminedbyLaunchServices).
open/Applications/
opensthatdirectoryintheFinder.
open-a/Applications/TextEdit.app"/Volumes/MacintoshHD/foo.txt"
opensthedocumentintheapplicationspecified(inthiscase,TextEdit).
open-e"/Volumes/MacintoshHD/foo.txt"
opensthedocumentinTextEdit(the-eoptionspecifiesTextEdit).
openhttp://www.apple.com/
openstheURLinthedefaultbrowser(lynx,naturally*wink*)
open"file://localhost/Volumes/MacintoshHD/foo.txt"
opensthedocumentinthedefaultapplicationforitstype(asdeterminedbyLaunchServices).
open"file://localhost/Volumes/MacintoshHD/Applications/"
opensthatdirectoryintheFinder.