当前位置: 移动技术网 > 科技>操作系统>Mac > 苹果Mac os系统中在终端下打开APP应用程序方法介绍

苹果Mac os系统中在终端下打开APP应用程序方法介绍

2018年05月02日  | 移动技术网科技  | 我要评论

  用户在mac os平台上配置文件的时候有时候需要在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

  the command is simply open (which can also be used for opening directories). the most basic example of launching an application:

  open /path/to/some.app

  more complex possibilities also exist:

  open "/volumes/macintosh hd/foo.txt"

  opens the document in the default application for its type (as determined by launchservices).

  open /applications/

  opens that directory in the finder.

  open -a /applications/textedit.app "/volumes/macintosh hd/foo.txt"

  opens the document in the application specified (in this case, textedit).

  open -e "/volumes/macintosh hd/foo.txt"

  opens the document in textedit (the -e option specifies textedit).

  open http://www.apple.com/

  opens the url in the default browser (lynx, naturally *wink*)

  open "file://localhost/volumes/macintosh hd/foo.txt"

  opens the document in the default application for its type (as determined by launchservices).

  open "file://localhost/volumes/macintosh hd/applications/"

  opens that directory in the finder.

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网