How to open an .png type image in Linux terminal?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















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.










share|improve this question



















  • 4





    What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions.

    – DopeGhoti
    Jan 2 at 19:55











  • Are you remoting in to the server? Do you have an xterm session running?

    – Joe Healey
    Jan 2 at 20:33











  • Yes, I am remoting in to the server.

    – Genie
    Jan 2 at 21:20















0















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.










share|improve this question



















  • 4





    What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions.

    – DopeGhoti
    Jan 2 at 19:55











  • Are you remoting in to the server? Do you have an xterm session running?

    – Joe Healey
    Jan 2 at 20:33











  • Yes, I am remoting in to the server.

    – Genie
    Jan 2 at 21:20













0












0








0








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.










share|improve this question
















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.







ubuntu images xdg-open






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 20:35









Jeff Schaller

39.3k1054125




39.3k1054125










asked Jan 2 at 19:50









GenieGenie

12




12







  • 4





    What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions.

    – DopeGhoti
    Jan 2 at 19:55











  • Are you remoting in to the server? Do you have an xterm session running?

    – Joe Healey
    Jan 2 at 20:33











  • Yes, I am remoting in to the server.

    – Genie
    Jan 2 at 21:20












  • 4





    What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions.

    – DopeGhoti
    Jan 2 at 19:55











  • Are you remoting in to the server? Do you have an xterm session running?

    – Joe Healey
    Jan 2 at 20:33











  • Yes, I am remoting in to the server.

    – Genie
    Jan 2 at 21:20







4




4





What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions.

– DopeGhoti
Jan 2 at 19:55





What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions.

– DopeGhoti
Jan 2 at 19:55













Are you remoting in to the server? Do you have an xterm session running?

– Joe Healey
Jan 2 at 20:33





Are you remoting in to the server? Do you have an xterm session running?

– Joe Healey
Jan 2 at 20:33













Yes, I am remoting in to the server.

– Genie
Jan 2 at 21:20





Yes, I am remoting in to the server.

– Genie
Jan 2 at 21:20










2 Answers
2






active

oldest

votes


















1














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





share|improve this answer






























    -1














    I finally found out that I can use FTP to download pictures and HTML files from the server and open them with my own PC.






    share|improve this answer
























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492077%2fhow-to-open-an-png-type-image-in-linux-terminal%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      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





      share|improve this answer



























        1














        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





        share|improve this answer

























          1












          1








          1







          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





          share|improve this answer













          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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 20:52









          GAD3RGAD3R

          25.8k1750107




          25.8k1750107























              -1














              I finally found out that I can use FTP to download pictures and HTML files from the server and open them with my own PC.






              share|improve this answer





























                -1














                I finally found out that I can use FTP to download pictures and HTML files from the server and open them with my own PC.






                share|improve this answer



























                  -1












                  -1








                  -1







                  I finally found out that I can use FTP to download pictures and HTML files from the server and open them with my own PC.






                  share|improve this answer















                  I finally found out that I can use FTP to download pictures and HTML files from the server and open them with my own PC.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 2 at 22:03

























                  answered Jan 2 at 21:18









                  GenieGenie

                  12




                  12



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492077%2fhow-to-open-an-png-type-image-in-linux-terminal%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay