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
command-line mv
marked as duplicate by muru, waltinator, karel, Eric Carvalho, Zanna
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.
add a comment |
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
command-line mv
marked as duplicate by muru, waltinator, karel, Eric Carvalho, Zanna
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.
add a comment |
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
command-line mv
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
command-line mv
edited Dec 2 at 4:09
muru
135k19288488
135k19288488
asked Dec 2 at 0:06
Kong
2891618
2891618
marked as duplicate by muru, waltinator, karel, Eric Carvalho, Zanna
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
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.
add a comment |
add a comment |
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>
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
add a comment |
up vote
2
down vote
I would suspect:
mv {001..100}/ train/
Just replace 100
with your folder range.
1
wow this is much neater thanks !
– Kong
Dec 2 at 11:10
add a comment |
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>
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
add a comment |
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>
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
add a comment |
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>
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>
edited Dec 3 at 13:14
terdon♦
63.8k12135212
63.8k12135212
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
add a comment |
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
add a comment |
up vote
2
down vote
I would suspect:
mv {001..100}/ train/
Just replace 100
with your folder range.
1
wow this is much neater thanks !
– Kong
Dec 2 at 11:10
add a comment |
up vote
2
down vote
I would suspect:
mv {001..100}/ train/
Just replace 100
with your folder range.
1
wow this is much neater thanks !
– Kong
Dec 2 at 11:10
add a comment |
up vote
2
down vote
up vote
2
down vote
I would suspect:
mv {001..100}/ train/
Just replace 100
with your folder range.
I would suspect:
mv {001..100}/ train/
Just replace 100
with your folder range.
answered Dec 2 at 0:31
jackw11111
43117
43117
1
wow this is much neater thanks !
– Kong
Dec 2 at 11:10
add a comment |
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
add a comment |