如何在 Linux 终端中打开 .png 类型的图像?

Gen*_*nie 7 ubuntu images xdg-open

我只是找不到显示 *.png 图像的命令!我试过xdg-open命令但它失败了:

[student@seqpapl1 Images]$ xdg-open adapter_content.png 
xdg-open: no method available for opening 'adapter_content.png'
Run Code Online (Sandbox Code Playgroud)

我目前在服务器上运行 ubuntu linux。

GAD*_*D3R 8

使用mimeopen -d设置默认应用程序:

mimeopen -d image.png
Run Code Online (Sandbox Code Playgroud)

示例输出:

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)
Run Code Online (Sandbox Code Playgroud)

选择您的默认应用程序,下次您将可以使用:

mimeopen image.png
Run Code Online (Sandbox Code Playgroud)

或者:

xdg-open image.png
Run Code Online (Sandbox Code Playgroud)