Use the command line to quickly open various types of files (go) under Ubuntu

Source: Internet
Author: User

nautilus/media/pm/document/book/system/required Read
nautilus/media/pm/document/BOOK/ANDROID/NDK kernel/framerwork/android waitread
xdg-open/media/pm/Document/book/system/required read/In-depth understanding of the Linux kernel. PDFUbuntu under a magical command--open a folder in the form of a window

An order for an unexpected discovery today.

nautilus/media/

Opens a directory in the form of a window that can be used later by script.

Use the command line to quickly open various types of files (go) under Ubuntu 2012-10-17 16:36:24

Category: LINUX

Under Ubuntu, text files are usually opened with the command line, such as commands Gedit, more, cat, Vim, and less. However, when you need to open other format files, such as PDF, JPG, mp3 format files, we usually go into the directory where the file is located, double-click Open, it is very effective. In fact, these format files, even Web pages, can be opened by command Xdg-open (opens a file or URL in the user's preferred application), as simple as opening a file.


Let me give you two examples:


[Email protected]:~$ xdg-open La_isla_bonita.mp3
[Email protected]:~$ xdg-open Http://[email protected]:~$ has created a new window in an existing browser session.]

Xdg-open will choose the appropriate program to open the specified file, the same as double-click to open the effect. In My computer, the first example will be opened with Totem Movie player, the second example will be opened with Google Chrome, not Firefox, this is because Google Browser is my default browser.


Here's how:
Xdg-open {File | URL}


Xdg-open {--help |--manual |--version}

This is open with the default program, or you can specify that the program opens

such as: if there is mplayer, direct maplayer *.avi

Picture words:eog-f/root/test/123.jpg

In such as Open Picture: with display example: There is a picture under/root/desktop/abc.png,display/root/desktop/abc.png

This same as CMD in Windows opens the Picture:start D:\123.jpg

http://blog.csdn.net/nlznlz/article/details/25171195

Http://blog.chinaunix.net/uid-27025492-id-3376626.html

Http://www.cnblogs.com/onlycxue/archive/2013/04/25/3041710.html

Use the command line to quickly open various types of files (go) under Ubuntu

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.