View Full Version : how do I move all files/directory?

Aug 13, 2004, 07:57 PM
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.

Aug 13, 2004, 08:27 PM
ok, I found out for question 1: mv *.* src dest will move all files.

2, and 3 still remain. :)

Aug 13, 2004, 08:34 PM
If I have folder X, and I want to rename it to folder Y, I just type:
mv X Y

If I have folder X and I want to move it into folder Y, I type:
mv X Y/X

Does that help?

Or, to be more clear: type

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.