Ubuntu command line to open html files

Source: Internet
Author: User
To open a webpage file using the command line, follow these steps:

1.ctrl+alt‑tcan be used to enable shell, f11can be displayed in full screen, input the command to enable js17.html, and specify a browser, such as specifying chrome,

Copy codeThe code is as follows:
Google-chrome js17.html

You can run the following command to open the SDK in firefox:


Copy codeThe code is as follows:
Firefox js17.html

2. xdg-open

Copy codeThe code is as follows:
Xdg-open js17.html

Xdg-open format:
 
 
Copy codeThe code is as follows:
Xdg-open {file | URL}
Xdg-open {-- help | -- manual | -- version}

You can use xdg-opento open various types of files, but only use the logging program to open js17.html. here, firefox is used instead of chrome. open the mp3 example.


Copy codeThe code is as follows:
Xdg-open hello_kitty.pdf

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.