LoginSignup
0
2

More than 1 year has passed since last update.

コマンドでブラウザで特定のURLを開く方法

Posted at

方法

以下のように実行すると特定のURLを指定したブラウザで開けます。

open -a 'ブラウザ名.app' <URL>
  • ChoromeでURLを開く場合
open -a 'Google Chrome.app' <URL>
  • SafariでURLを開く場合
open -a 'Safari.app' <URL>

具体例

open -a 'Google Chrome.app' "https://github.com/"
open -a 'Safari.app' "https://qiita.com/"
0
2
0

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
0
2