You can use the general command xdg-view, or any variant of it for the specific distribution you have installed, for example, gnome-view or kde-view, to open a rich text or image file. $ xdg-view enwiki.png This will open the file in the default application for the target file type.