July 23, 2015

How to mv 2 files at same time?

mv file1 file2 destination/

mv file1 file2 destination/

Like  (0 likes)

mv -t DESTINATION file1 file2 file3 man mv

mv -t DESTINATION file1 file2 file3

man mv

Like  (0 likes)

Per the manpage:...

Per the manpage:

mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...

So you can move multiple files to 1 destination (many to one), but you cannot directly do many to many moves. E.g. if you have files A B C, you could do:

mv A B C /tmp

but not,

mv A /tmp B /

Like  (0 likes)
Click Here!