move files from a directory to another

Osmario

New Member
Joined
Jul 24, 2020
Messages
2
Reaction score
0
Credits
17
Hello
I have to move many files from a directory to another. If I use $ mv -v dir1/{file1,file2,file3} dir2/ will be necessary to name all files, one by one.
Is there other way to perform this task?

Thanks in advance

Osmario
 


@Osmario -- Welcome!

mv is one of the most often used commands -- see online man pages

one example would be
Code:
mv dir01/* dir02/

it renames as it moves, if user wants. therefore, can be very useful in saving keystrokes. See for yourself, here
 

Members online


Latest posts

Top