技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機純凈版,64位旗艦版,綠色軟件,免費軟件下載基地!

當(dāng)前位置:主頁 > 教程 > 服務(wù)器類 >

蘋果mac os怎么用命令行終端打開app應(yīng)用程序

來源:技術(shù)員聯(lián)盟┆發(fā)布時間:2018-02-28 18:00┆點擊:

  蘋果mac os怎么用命令行終端打開app應(yīng)用程序?有時在mac os平臺上配置文件會需要在mac終端打開app應(yīng)用程序。下文小樂哥為大家分享蘋果mac os用命令行終端打開app應(yīng)用程序教程,一起來學(xué)學(xué)吧!

蘋果mac os怎么用命令行終端打開app應(yīng)用程序

  打開終端 直接輸入 open /Applications/xxx(應(yīng)用的名稱).app 比如打開iTunes輸入:open /Applications/iTunes.app (注意open之后需要空格再輸入斜杠 / )

  mac下在終端中打開應(yīng)用程序的命令

  from:

  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

  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.