Gnome Desktop Tip: Quickly Open Any File / URL / Write Email

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

The Run Application dialog gives you access to the command line.
Hit Alt+F2 > Type file name > Enter

Fig.01: Run File / Command 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:
gnome-open file.pdf

Other common usage

Write email:
gnome-open 'mailto:user@example.com'
Open example.com website:
gnome-open example.com
Play mp3s:
gnome-open *.mp3
Open file browser in current directory:
gnome-open .
gnome-open /share/docs/

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
for you.

Simply click on System > Preferences > Preferred Application

Fig.02: Preferred Applications

You can customize the preferences for the Preferred Applications preference tool in the following functional areas.

  1. Web Browser
  2. Mail Reader
  3. Terminal
🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
6 comments… add one
  • Markor Jul 4, 2012 @ 0:58

    great, wanted this method, too 🙂

  • Beli Mar 17, 2011 @ 14:18

    This is what I was looking for, thanks!

  • David Ernwine Aug 25, 2008 @ 14:52

    George,

    http://sourceforge.net/projects/cyborg/

    Found this… Any help?

  • Jacky H.Chan Aug 25, 2008 @ 2:53

    I think who have tried gnome-open will love to gnome-do as well.

    http://do.davebsd.com/

    I personally find gnome-do can rubost the working performance in Linux desktop as well as gnome-open.

  • Limesh Parekh Aug 23, 2008 @ 1:50

    I have susbscribed to your RSS, and I find all the articles extremely useful for our support team.

    thanks, great work buddy.

    Keep it up.

    Limesh Parekh

  • George Aug 22, 2008 @ 13:38

    Am looking for a linux based cyber cafe timer software that runs on linux and works almost like cyber cafe pro timer software for windows xp.

    And also if it is possible to use cyber cafe pro 5. on linux using wine software?

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.