Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Moving a lot of files...

Moving a lot of files...
Thread Tools
Embermage
Forum Regular
Join Date: Dec 2000
Location: Here
Status: Offline
Reply With Quote
Sep 3, 2001, 12:01 PM
 
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!
     
Dr Evil
Forum Regular
Join Date: Oct 1999
Location: Fort Wayne, IN USA
Status: Offline
Reply With Quote
Sep 3, 2001, 12:44 PM
 
Have you tried moving directly to the /www/forums/cgi-bin/boards/ directory and then trying mv *.tar /backup/? Hope that works!

Dr Evil
Quicksilver G4 867mhz 384mb/60gig
iBook 300 320mb/20gig
Athlon Xp 1700+(1.47GHz) 512mb ddr/26gig, GeForce 4 TI 4200/128mb
http://mayodreams.dyndns.org
     
redeye
Fresh-Faced Recruit
Join Date: Aug 2001
Status: Offline
Reply With Quote
Sep 3, 2001, 08:41 PM
 
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.
WWWWaaaaaaaaaaaaaaa!!!!!!!!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:17 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,