欢迎光临散文网 会员登陆 & 注册

macOS使用terminal打开google/opera/safari/默认浏览器查看html文件内容的方法

2022-04-27 18:59 作者:LogByMax  | 我要投稿

(认知有限,如有不妥,还请告知,欢迎讨论)


使用默认浏览器打开指定html文件

open <file1.html> <file2.html>


使用google浏览器打开指定html文件

open -a "/applications/Google Chrome.app" <file1.html> <file2.html>


使用Opera浏览器打开指定html文件

open -a "/applications/Opera.app" <file1.html> <file2.html>


使用Safari浏览器打开指定html文件

open -a "/applications/Safari.app" <file1.html> <file2.html>


=END=

=reference=

[1]https://superuser.com/questions/85151/how-to-open-a-browser-from-terminal


macOS使用terminal打开google/opera/safari/默认浏览器查看html文件内容的方法的评论 (共 条)

分享到微博请遵守国家法律