Since you are new to the command line I will go over the steps one by one, explaining each along the way.
When you open up a terminal/shell/command-line, you'll see a command-prompt like so:
or something similar. You'll almost certainly start out in your home directory, which has the name of your username.
Let's say your two image folders are
folder2. You said they are on the Desktop, so first we change to the
cd command is the "change directory" command, doing exactly what it sounds like.
Now, we are going to use the
mv command, which of course stands for "move".
mv -i folder1/* folder2/
I used the
-i flag, which stands for "interactive", which causes a prompt to appear every time there is a file-name conflict. You'll be asked whether you want to overwrite the destination file or not.
After this, you'll have to manually resolve any conflicts* by renaming the files left in
folder1 so they don't conflict with the files in
folder2. Finally, run the above command again, but this time you should get no conflicts.
After all this, your
folder1 directory should be empty, so go ahead and remove it with
and you're done!
I really recommend you go through a simple bash tutorial like this one to learn the basics.
- Note that it is of course possible to resolve naming conflicts programmatically by renaming each of the files in
folder1, but I tried to keep things simple.