I just want to move and overwrite all the files and folders including any subdirectories and their files to another folder and its subfolder.
I have tried the following commands, but they don't work on subdirectory and its files.
mv -f fromA/* toB/
mv -f fromA/{,.}* toB/
So all the files from folder A are moved to folder B but not A/sub to B/sub.
I get error cannot move 'fromA/subA' to 'toB/subB': File Exists
It works if I go down each folder one by one, but I am sure I am missing something. I have seen most if not all related answers but none of them work here.