No Title

Starting files directly from the command line in Ubuntu

e.g. PDFs, HTML …

Add this:

# Open files and folders directly from the command line
# e.g. gnome-open README.PDF
# which with this alias becomes: g README.PDF
# This also works with folders
# e.g.  g .      will open the current folder

alias g='gnome-open'

either directly to the end of ~/.bashrc or preferably, create a new file called .bash_aliases and put it in there.

Thanks to http://embraceubuntu.com/2006/12/16/gnome-open-open-anything-from-the-command-line/

This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>