Click to See Complete Forum and Search --> : Dumb questions


Clutch
07-27-2001, 05:48 PM
Heh, I need to move a bunch of files around as root but I don't know how to do it other than moving them one at a time in a terminal. How do I move a directories contents instead of the entire directory or a single file. And how do you cut? I only know the cp command to copy files. thanks :)

evulish
07-27-2001, 05:53 PM
to move a directory, try cp -a directory directory

for cutting (or something similar), use rn to rename the files to someplace different...

Clutch
07-27-2001, 06:04 PM
I mean move one directories entire contents to another directory all at once without actually moving the source dir.

solo
07-27-2001, 09:10 PM
You can try wild cards. If you type:


cd <source dir>

#rn * -OR- *.* <destination dir/filename>


I think that'll move everything in the source dir. Use *.* if you have any "." extensions in there. Hope that helps.

[ 27 July 2001: Message edited by: solo ]

DMR
07-27-2001, 09:42 PM
or:cd <sourcedir>
mv * <targetdir>As solo said, *.* will move files with a dot in their name, however it will not move files which don't contain a dot.

sincka
07-28-2001, 01:49 AM
Well I think your question has been answered but I couldn't resist.

No question is stupid... maybe easy but not stupid :p Without questions... there would be no answers.

seeker22
07-28-2001, 02:00 AM
Or type 'mc' and use Midnight Commander to move files to :)