How to recursively move all folders one directory up back one directory

Solution 1:

There is no recursive option for the mv command, so if there are directories inside the directories you want to move, you'll have to use cp. How about this one:

cp -R scenery/terrain/*/terrain/* scenery/terrain/
cp -R scenery/terrain/*/objects/* scenery/objects/

Then when you're sure that worked:

rm -rf scenery/terrain/*/terrain
rm -rf scenery/terrain/*/objects

Solution 2:

mv scenery/terrain/*/terrain/* scenery/terrain/
mv scenery/terrain/*/objects/* scenery/objects/