Mac 使用 命令行打开 chrome 等app

发布时间:2022-05-17浏览次数:0

支持注册ChatGPT Plus的OneKey虚拟卡
绑定Apple Pay、Google Pay、支付宝和微信支付进行日常消费

注册和了解更多 ->

silver

对于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
字节笔记本扫描二维码查看更多内容