LoginSignup
18

More than 5 years have passed since last update.

OSXのopenコマンドでよく使うオプション

Posted at

macではコマンドラインからopenコマンドを使うことで様々なアプリケーションが開けます。
また、openコマンドは、ファイル、ディレクトリ、URLも開くことが可能です。

現在のディレクトリをFinderで開く

$ open .

[-a] 特定のアプリケーションを開く。

/Applications以下にあるアプリはパスを書かずに実行可能。
また空白文字が入るアプリケーションはコーテーションで囲う必要がある。

$ open -a firfox

[-n] すでに起動していても新しいインスタンスで起動する

$ open -a macvim -n

[--args] 引数を渡す

Chromeをシークレットモードで起動

$ open -a "Google Chrome" -n --args --incognito

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18