C chrislee8 macrumors regular Original poster Aug 13, 2004 #1 1. how do I move all files because mv has only -f/i option? 2. how do I move directory from one place to another ? 3. how do I move everything from one place to another? seems like mv can only do moving files, not folders. thanks in advanced.
1. how do I move all files because mv has only -f/i option? 2. how do I move directory from one place to another ? 3. how do I move everything from one place to another? seems like mv can only do moving files, not folders. thanks in advanced.
C chrislee8 macrumors regular Original poster Aug 13, 2004 #2 ok, I found out for question 1: mv *.* src dest will move all files. 2, and 3 still remain. 🙂
jsw Moderator emeritus Aug 13, 2004 #3 If I have folder X, and I want to rename it to folder Y, I just type: Code: mv X Y If I have folder X and I want to move it into folder Y, I type: Code: mv X Y/X Does that help? Or, to be more clear: type Code: mv full_path_of_folder new_full_path_of_folder Remember, if you just type 'mv X Y', you'll rename X into Y, not put X inside of Y. By the way, this moves folder contents as well.
If I have folder X, and I want to rename it to folder Y, I just type: Code: mv X Y If I have folder X and I want to move it into folder Y, I type: Code: mv X Y/X Does that help? Or, to be more clear: type Code: mv full_path_of_folder new_full_path_of_folder Remember, if you just type 'mv X Y', you'll rename X into Y, not put X inside of Y. By the way, this moves folder contents as well.