[Gllug] cp command

Matthew Smith indigojo_uk at yahoo.co.uk
Thu Nov 23 09:09:42 UTC 2006


On 21 Nov 2006, at 16:21, John G Walker wrote:

>
>
> On Tue, 21 Nov 2006 16:08:40 +0000 Mark Herringer
> <mark at countryman.co.za> wrote:
>
>> what options should I specify to copy the contents of a folder and  
>> not
>> the folder itself.
>>
>> cp ...options...source folder...destination folder
>>
>
> To copy the contents from subdirectory A into subdirectory B:
>
> cp ,/A/* ./B
>
>

If the folder you wish to copy has subdirectories, you need to use  
the -R option (to make it recursive and to preserve any symbolic links):

cp -R folderA/* folderB

Matt

-- 

http://www.blogistan.co.uk/qt/


Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list