Linked Questions

82 votes
8 answers
37k views

How can I open a file in my terminal, like nautilus does it? [duplicate]

I want to be able to open files like my operating system does from console. e.g. a .pdf file should be opened with evince or whatever the default application to open pdfs is. All the other things ...
David Halter's user avatar
  • 1,013
7 votes
3 answers
21k views

Command `open` not working on Ubuntu Terminal [duplicate]

I am trying to follow Introduction to bash for data analysis. It has a line of commands as: open ~/.bash_profile. The tutorial is on Mac computers, but on the comments section it says that I can also ...
hmd's user avatar
  • 73
4 votes
2 answers
2k views

How to open a file in it's own application like `start` in Windows and how to use `start .`? [duplicate]

How to open a file in it's own application like start in Windows? In Windows, at the command prompt, one could type start . and it would open a file browser for the current directory, or start ...
Roel Van de Paar's user avatar
2 votes
2 answers
190 views

Command to open a document [duplicate]

What's the command that, given a document name, will open it with the right application (i.e. an equivalent to windows start / mac os x open)
Matt Gregory's user avatar
2 votes
1 answer
66 views

command line tool for viewing files of arbitrary file-type? [duplicate]

Is there a command line tool (e.g. called "view") that will select a program to open / view a file with automagically based on the file extension and/or other hints to the format?
capybaralet's user avatar
123 votes
7 answers
404k views

How to launch default web browser from the terminal?

I was wondering what's the terminal command to open the default web browser.
Luca's user avatar
  • 2,432
9 votes
3 answers
21k views

Adding a file to the list of startup applications

In Windows, it's possible to make files open at startup (using the default program for opening the file) by adding the files to the startup folder. However, in Ubuntu, it isn't possible to drag a file ...
Anderson Green's user avatar
14 votes
2 answers
4k views

How to open a specific application like macOS `open -a`?

On macOS in the default Terminal running bash, I can type: open -a Firefox http://www.wikipedia.org to open a URL with Firefox, or another browser. It also works to launch a program, e.g. open -a ...
miguelmorin's user avatar
2 votes
1 answer
1k views

List of file types and default Ubuntu applications to open with

I'm writing a humble file manager and am seeking a list of different file types and what default applications Ubuntu uses to open them with. So far I've only figured out "text" open with gedit, "...
WinEunuuchs2Unix's user avatar
0 votes
1 answer
259 views

What is the standard and best way to open a file or folder by command line

There are multiple ways to open files or folders such as gnome-open see xdg-open gvfs-open so... which should I use ?!
Saver's user avatar
  • 9