对于MacOS,在bash CLI中使用绝对路径(如果您的Chrome安装在/ Applications文件夹中),请使用:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
因此,如果您想打开baidu网站:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome www.baidu.com
此方法也可以用于mac中应用多开窗口,例如mac下 多开微信
/Applications/WeChat.app/Contents/MacOS/WeChat