How to move multiple folders to another directory? [duplicate]











up vote
1
down vote

favorite













This question already has an answer here:




  • How to move multiple files at once to a specific destination directory?

    12 answers




How can I move multiple folders into another directory ? For example, I would like to move the folder 000/ 001/ 002/ to train/000/ train/002 train/003. Is there a simple command that I can use like



mv --from 000/ 001/ 002/ --to train/000/ train/002 train/003









share|improve this question















marked as duplicate by muru, waltinator, karel, Eric Carvalho, Zanna 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();
}
);
});
});
Dec 2 at 18:12


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 move multiple files at once to a specific destination directory?

      12 answers




    How can I move multiple folders into another directory ? For example, I would like to move the folder 000/ 001/ 002/ to train/000/ train/002 train/003. Is there a simple command that I can use like



    mv --from 000/ 001/ 002/ --to train/000/ train/002 train/003









    share|improve this question















    marked as duplicate by muru, waltinator, karel, Eric Carvalho, Zanna 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();
    }
    );
    });
    });
    Dec 2 at 18:12


    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 move multiple files at once to a specific destination directory?

        12 answers




      How can I move multiple folders into another directory ? For example, I would like to move the folder 000/ 001/ 002/ to train/000/ train/002 train/003. Is there a simple command that I can use like



      mv --from 000/ 001/ 002/ --to train/000/ train/002 train/003









      share|improve this question
















      This question already has an answer here:




      • How to move multiple files at once to a specific destination directory?

        12 answers




      How can I move multiple folders into another directory ? For example, I would like to move the folder 000/ 001/ 002/ to train/000/ train/002 train/003. Is there a simple command that I can use like



      mv --from 000/ 001/ 002/ --to train/000/ train/002 train/003




      This question already has an answer here:




      • How to move multiple files at once to a specific destination directory?

        12 answers








      command-line mv






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 2 at 4:09









      muru

      135k19289492




      135k19289492










      asked Dec 2 at 0:06









      Kong

      2891618




      2891618




      marked as duplicate by muru, waltinator, karel, Eric Carvalho, Zanna 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();
      }
      );
      });
      });
      Dec 2 at 18:12


      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 muru, waltinator, karel, Eric Carvalho, Zanna 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();
      }
      );
      });
      });
      Dec 2 at 18:12


      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.
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          I could type whatever was typed in this article again, but here:
          https://discuss.devopscube.com/t/how-to-move-mv-multiple-directories-or-files-to-a-folder-at-a-time/100



          The basic command is:




          You can do this using -t flag with the mv command.



          The syntax would look like the following.



            mv -t <destination> <src1> <src2> .... <srnN>






          share|improve this answer























          • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
            – Thomas Ward
            Dec 3 at 0:22


















          up vote
          2
          down vote













          I would suspect:



          mv {001..100}/ train/



          Just replace 100 with your folder range.






          share|improve this answer

















          • 1




            wow this is much neater thanks !
            – Kong
            Dec 2 at 11:10


















          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          I could type whatever was typed in this article again, but here:
          https://discuss.devopscube.com/t/how-to-move-mv-multiple-directories-or-files-to-a-folder-at-a-time/100



          The basic command is:




          You can do this using -t flag with the mv command.



          The syntax would look like the following.



            mv -t <destination> <src1> <src2> .... <srnN>






          share|improve this answer























          • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
            – Thomas Ward
            Dec 3 at 0:22















          up vote
          1
          down vote



          accepted










          I could type whatever was typed in this article again, but here:
          https://discuss.devopscube.com/t/how-to-move-mv-multiple-directories-or-files-to-a-folder-at-a-time/100



          The basic command is:




          You can do this using -t flag with the mv command.



          The syntax would look like the following.



            mv -t <destination> <src1> <src2> .... <srnN>






          share|improve this answer























          • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
            – Thomas Ward
            Dec 3 at 0:22













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          I could type whatever was typed in this article again, but here:
          https://discuss.devopscube.com/t/how-to-move-mv-multiple-directories-or-files-to-a-folder-at-a-time/100



          The basic command is:




          You can do this using -t flag with the mv command.



          The syntax would look like the following.



            mv -t <destination> <src1> <src2> .... <srnN>






          share|improve this answer














          I could type whatever was typed in this article again, but here:
          https://discuss.devopscube.com/t/how-to-move-mv-multiple-directories-or-files-to-a-folder-at-a-time/100



          The basic command is:




          You can do this using -t flag with the mv command.



          The syntax would look like the following.



            mv -t <destination> <src1> <src2> .... <srnN>







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 3 at 13:14









          terdon

          63.9k12135212




          63.9k12135212










          answered Dec 2 at 0:10









          Kamikoroshi

          415




          415












          • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
            – Thomas Ward
            Dec 3 at 0:22


















          • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
            – Thomas Ward
            Dec 3 at 0:22
















          Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
          – Thomas Ward
          Dec 3 at 0:22




          Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
          – Thomas Ward
          Dec 3 at 0:22












          up vote
          2
          down vote













          I would suspect:



          mv {001..100}/ train/



          Just replace 100 with your folder range.






          share|improve this answer

















          • 1




            wow this is much neater thanks !
            – Kong
            Dec 2 at 11:10















          up vote
          2
          down vote













          I would suspect:



          mv {001..100}/ train/



          Just replace 100 with your folder range.






          share|improve this answer

















          • 1




            wow this is much neater thanks !
            – Kong
            Dec 2 at 11:10













          up vote
          2
          down vote










          up vote
          2
          down vote









          I would suspect:



          mv {001..100}/ train/



          Just replace 100 with your folder range.






          share|improve this answer












          I would suspect:



          mv {001..100}/ train/



          Just replace 100 with your folder range.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 2 at 0:31









          jackw11111

          40617




          40617








          • 1




            wow this is much neater thanks !
            – Kong
            Dec 2 at 11:10














          • 1




            wow this is much neater thanks !
            – Kong
            Dec 2 at 11:10








          1




          1




          wow this is much neater thanks !
          – Kong
          Dec 2 at 11:10




          wow this is much neater thanks !
          – Kong
          Dec 2 at 11:10



          Popular posts from this blog

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei