Ivor O’Connor

August 2, 2009

Opening PDF Files From The Command Line In Ubuntu

Filed under: Uncategorized — ioconnor @ 1:28 pm

Ubuntu is soo buggy. It seems moody youngsters who don’t believe in testing their code have taken it over. Maybe BSD, Fedora, or CentOS would be better maintained. Currently using the default GUI file manager is problematic. One week it will move a file. The next week you have to press the shift key at the same time. Currently alt-f4 will sometimes disable the keyboard. My temporary solution? To use the CLI.
So how to open PDF files from the command line? With “gnome-open”. This begs the question on how to edit what gets opened with this command. (Since it’s not documented in the man page.) The solution is editing the file “/etc/gnome/defaults.list”. The file can be reset to the original defaults with “sudo update-desktop-database”. (I’d store a copy of the original file before doing this command.)

I see some people recommend setting up an alias for the command. Something like alias g=’gnome-open’

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: