There are three ways to open any file under Gnome Linux / UNIX Desktop. gnome-open is the quickest and easiest way to open any file or url. Let us see how to open a pdf file quickly.
Open a File Using Application itself (time consuming)
Click on Application > Select App > File > Open > Select File
Open a File Using Run Application Dialog box
Please note that when you run a command in the Run Application dialog, you cannot receive output from the command.
Open a File Using The Command Line
gnome-open will open file using your preferred application. To open a pdf file, enter:
Other common usage
Open example.com website:
Open file browser in current directory:
Put the following alias to speed up operation:
echo 'alias o="gnome-open $@"' >>~/.bashrc
$ o /path/to/file.pdf
$ o theos.in
How do configure preferred application?
Use the Preferred Applications preference tool to specify the applications that
you want the GNOME Desktop to use when the GNOME Desktop starts an application
Simply click on System > Preferences > Preferred Application
You can customize the preferences for the Preferred Applications preference tool in the following functional areas.
- Web Browser
- Mail Reader