Originally posted by Embermage:
<STRONG>Let's say that I have a directory: /www/forums/cgi-bin/boards/ and in the directory were a bunch of .tar files. I know that I can do *.tar to get them all, but this command doesn't work:
mv /www/forums/cgi-bin/boards/*.tar /backup/. I tried looking that the manal for the move command, but it didn't help. How would I go about this?
Thanks!</STRONG>
The are a number of potential problems with the format of your command and/or the destination directory you have chosen. Since you don't indicate if you are performing this action as root, I will assume that you aren't.
1. Do not include the trailing / in the destination path.
mv /www/forums/cgi-bin/boards/*.tar /backup
2. Your destination path may not exsist or you may not have permissions to write to that directory. The path /backup indicates a there is a backup directory in the root directory. Try typing:
cd /backup
If it exsists, then check to make sure you have write permissions for that directory.
It would seem to make more sense for you to be copying the files to a directory under your user/home directory.
mv *.tar ~/backup
You shouldn't have any problems copying the files there as you should own that directory.
I hope that helps. If it still doesn't work post the error message generated by the console. It may help figue out what is going on.