How to open a file in any format using command line Xdg-open in Gnu/linu system

Source: Internet
Author: User
Tags command line linux

Under Gnu/linux, when you need to open other format files, we usually go into the directory where the file is located, double-click Open, very effective. In fact, you can open these format files, even Web pages, by command Xdg-open, as simple as opening a file.

Under Gnu/linux, text files are usually opened using the command line, such as commands Gedit, more, cat, vim, less. But when you need to open other format files, such as PDFs, JPG, mp3 format files, we usually do is to enter the directory where the file, double-click Open, very effective. In fact, these format files can be opened by command Xdg-open (opens a file or URL in the user's preferred application).

Xdg-open: The function is to open the file to use the user's preferred application opened, if you want to open a JPEG file, you can use the Xdg-open fuckgfw.jpeg will use the preferred (also understood as the default) application to open this JPEG file;

More usage can be done with the man xdg-open for a more detailed help note after the command line is installed in the Gnu/linux release version;

Author: csdn Blog Yygydjkthh

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.