Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Directory move question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
TayloR974
n00b
n00b


Joined: 11 Jul 2004
Posts: 59
Location: If only i knew then i could escape

PostPosted: Mon Sep 20, 2004 9:08 pm    Post subject: Directory move question Reply with quote

Hey all, right i just have a quick question to ask and id be so greatful if you could help me out :D, right well, i have aload of folders inside of one main folder, for example the main folder is called 'pictures' and inside that folder i have sub folders such as 'backgrounds' 'funny' etc... i wanna copy all of the sub folders inside the one main folder into a different directory. so would the command be:

Code:
cp -r /mnt/storage/pictures/ /home/computer/picutres
?

will that copy all of the sub folders and the contents inside of each folder successfully to the specified directory? or will i need to use * wildcard?

thanks in advance for any help =)
_________________
... Im not an expert but i really dont think its supposed to do that :\ ...

... Wish to join the Gentoo channel to chat?, then Click Here ...
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Mon Sep 20, 2004 9:13 pm    Post subject: Reply with quote

cp -r /mnt/storage/pictures/, would be enough since the pictures dir are the main and contains all subs.
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
TayloR974
n00b
n00b


Joined: 11 Jul 2004
Posts: 59
Location: If only i knew then i could escape

PostPosted: Mon Sep 20, 2004 9:59 pm    Post subject: Reply with quote

thanks for the info dude :), just so i can see what folder its currently copying and the status with what others its copied already would i use verbose in that command?

like this:

Code:
cp -rv /home/computer/pictures
?

Thanks again in advance
_________________
... Im not an expert but i really dont think its supposed to do that :\ ...

... Wish to join the Gentoo channel to chat?, then Click Here ...
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Mon Sep 20, 2004 11:46 pm    Post subject: Reply with quote

TayloR974 wrote:
thanks for the info dude :), just so i can see what folder its currently copying and the status with what others its copied already would i use verbose in that command?

like this:

Code:
cp -rv /home/computer/pictures
?

Thanks again in advance

Yes, cp -rv will do just that.
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
TayloR974
n00b
n00b


Joined: 11 Jul 2004
Posts: 59
Location: If only i knew then i could escape

PostPosted: Tue Sep 21, 2004 12:24 am    Post subject: Reply with quote

Thanks Geniux, really appreciate the help :)
_________________
... Im not an expert but i really dont think its supposed to do that :\ ...

... Wish to join the Gentoo channel to chat?, then Click Here ...
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Tue Sep 21, 2004 8:01 am    Post subject: Reply with quote

No probs, glade to help :)
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum