How to display all .png files using * in terminal [duplicate]

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








up vote
1
down vote

favorite













This question already has an answer here:



  • How to search for all the files starting with the name “ABC” in a directory?

    10 answers



  • how to open multiple files with the default program from terminal?

    7 answers



I am trying to figure out if there exists any command or combination of commands that can display all .png files with a given prefix.



For instance,



In one of my directories, there exist files



life_001.png
life_002.png
.
.
.
life_020.png
and
death_001.png
death_002.png
.
.
.
death_010.png


How can I display all life_***.png files simultaneously or consecutively using a command in linux terminal?



Thank you!







share|improve this question














marked as duplicate by αғsнιη, muru command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
May 13 at 16:06


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    1
    down vote

    favorite













    This question already has an answer here:



    • How to search for all the files starting with the name “ABC” in a directory?

      10 answers



    • how to open multiple files with the default program from terminal?

      7 answers



    I am trying to figure out if there exists any command or combination of commands that can display all .png files with a given prefix.



    For instance,



    In one of my directories, there exist files



    life_001.png
    life_002.png
    .
    .
    .
    life_020.png
    and
    death_001.png
    death_002.png
    .
    .
    .
    death_010.png


    How can I display all life_***.png files simultaneously or consecutively using a command in linux terminal?



    Thank you!







    share|improve this question














    marked as duplicate by αғsнιη, muru command-line
    Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

    StackExchange.ready(function()
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function()
    $hover.showInfoMessage('',
    messageElement: $msg.clone().show(),
    transient: false,
    position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
    dismissable: false,
    relativeToBody: true
    );
    ,
    function()
    StackExchange.helpers.removeMessages();

    );
    );
    );
    May 13 at 16:06


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite












      This question already has an answer here:



      • How to search for all the files starting with the name “ABC” in a directory?

        10 answers



      • how to open multiple files with the default program from terminal?

        7 answers



      I am trying to figure out if there exists any command or combination of commands that can display all .png files with a given prefix.



      For instance,



      In one of my directories, there exist files



      life_001.png
      life_002.png
      .
      .
      .
      life_020.png
      and
      death_001.png
      death_002.png
      .
      .
      .
      death_010.png


      How can I display all life_***.png files simultaneously or consecutively using a command in linux terminal?



      Thank you!







      share|improve this question















      This question already has an answer here:



      • How to search for all the files starting with the name “ABC” in a directory?

        10 answers



      • how to open multiple files with the default program from terminal?

        7 answers



      I am trying to figure out if there exists any command or combination of commands that can display all .png files with a given prefix.



      For instance,



      In one of my directories, there exist files



      life_001.png
      life_002.png
      .
      .
      .
      life_020.png
      and
      death_001.png
      death_002.png
      .
      .
      .
      death_010.png


      How can I display all life_***.png files simultaneously or consecutively using a command in linux terminal?



      Thank you!





      This question already has an answer here:



      • How to search for all the files starting with the name “ABC” in a directory?

        10 answers



      • how to open multiple files with the default program from terminal?

        7 answers









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 13 at 16:06









      muru

      1




      1










      asked May 13 at 15:45









      trenta coollime

      174




      174




      marked as duplicate by αғsнιη, muru command-line
      Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      May 13 at 16:06


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by αғsнιη, muru command-line
      Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      May 13 at 16:06


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          To open all matching files at the same time, in the default application for their respective file type, you can use xdg-open in a for-loop:



          for f in life_*.png ; do xdg-open "$f" ; done


          Note that because xdg-open opens the file in a separate process and returns immediately, this might open as many instances of your viewer application as there are files matching the pattern in rapid succession, which could strain your system resources.



          To open them sequentially, you'd have to call your viewer application directly and in the foreground, so that the next picture only opens as soon as you close the previous instance. In case of the "Eye Of Gnome" viewer eog, you should do:



          for f in life_*.png ; do eog "$f" ; done





          share|improve this answer





























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            To open all matching files at the same time, in the default application for their respective file type, you can use xdg-open in a for-loop:



            for f in life_*.png ; do xdg-open "$f" ; done


            Note that because xdg-open opens the file in a separate process and returns immediately, this might open as many instances of your viewer application as there are files matching the pattern in rapid succession, which could strain your system resources.



            To open them sequentially, you'd have to call your viewer application directly and in the foreground, so that the next picture only opens as soon as you close the previous instance. In case of the "Eye Of Gnome" viewer eog, you should do:



            for f in life_*.png ; do eog "$f" ; done





            share|improve this answer


























              up vote
              3
              down vote



              accepted










              To open all matching files at the same time, in the default application for their respective file type, you can use xdg-open in a for-loop:



              for f in life_*.png ; do xdg-open "$f" ; done


              Note that because xdg-open opens the file in a separate process and returns immediately, this might open as many instances of your viewer application as there are files matching the pattern in rapid succession, which could strain your system resources.



              To open them sequentially, you'd have to call your viewer application directly and in the foreground, so that the next picture only opens as soon as you close the previous instance. In case of the "Eye Of Gnome" viewer eog, you should do:



              for f in life_*.png ; do eog "$f" ; done





              share|improve this answer
























                up vote
                3
                down vote



                accepted







                up vote
                3
                down vote



                accepted






                To open all matching files at the same time, in the default application for their respective file type, you can use xdg-open in a for-loop:



                for f in life_*.png ; do xdg-open "$f" ; done


                Note that because xdg-open opens the file in a separate process and returns immediately, this might open as many instances of your viewer application as there are files matching the pattern in rapid succession, which could strain your system resources.



                To open them sequentially, you'd have to call your viewer application directly and in the foreground, so that the next picture only opens as soon as you close the previous instance. In case of the "Eye Of Gnome" viewer eog, you should do:



                for f in life_*.png ; do eog "$f" ; done





                share|improve this answer














                To open all matching files at the same time, in the default application for their respective file type, you can use xdg-open in a for-loop:



                for f in life_*.png ; do xdg-open "$f" ; done


                Note that because xdg-open opens the file in a separate process and returns immediately, this might open as many instances of your viewer application as there are files matching the pattern in rapid succession, which could strain your system resources.



                To open them sequentially, you'd have to call your viewer application directly and in the foreground, so that the next picture only opens as soon as you close the previous instance. In case of the "Eye Of Gnome" viewer eog, you should do:



                for f in life_*.png ; do eog "$f" ; done






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 20 at 8:29









                Fabby

                24k1351149




                24k1351149










                answered May 13 at 16:04









                Byte Commander

                58.6k26158265




                58.6k26158265












                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491