How to open an .png type image in Linux terminal?
54,861
Use mimeopen -d
to set the default application:
mimeopen -d image.png
sample output:
Please choose a default application for files of type image/png
1) ImageMagick (color depth=q16) (display-im6.q16)
2) GNU Image Manipulation Program (gimp)
3) Feh (feh)
Select your default application , next time you will be able to use:
mimeopen image.png
or:
xdg-open image.png
Related videos on Youtube

Author by
Admin
Updated on September 18, 2022Comments
-
Admin 8 months
I just can't find the command to display a *.png image! I tried
xdg-open
command but it failed:[student@seqpapl1 Images]$ xdg-open adapter_content.png xdg-open: no method available for opening 'adapter_content.png'
I am currently running ubuntu linux on the server.