main logo
Subject: Re: [ProLinux] cp command
Author: Ed Leafe
Posted: 2008/04/30 10:17:42
 
View Entire Thread
New Search


On Apr 30, 2008, at 8:42 AM, Peter Cushing wrote:

> I wanted to just copy the entire contents including subfolders to the
> stick with (I think):
>
> cp -R *.* //media/sda1

This ain't DOS: the wildcard for 'all files' is simply '*'. Most
likely your subdirs didn't contain a period in their name, and thus
didn't match.

That said, the -a option to cp is good when you want to copy
directory trees. You might also look into rsync, which a way more
powerful (and way cooler) option for syncing file systems across
directories, volumes, and the internet.

-- Ed Leafe






 
©2008 Ed Leafe
<-- Prior Message New Search Next Message -->