Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
Re: [SLE] Basic linux question - copying
  • From: Dave Smith <Dave.Smith@xxxxxx>
  • Date: Wed, 24 Apr 2002 12:00:03 +0100
  • Message-id: <20020424110003.GW8530@xxxxxxxxxxxxxx>
On Wed, Apr 24, 2002 at 12:31:52PM +0200, php@xxxxxxxxxxxxx wrote:
> Thanks, Dave,
> So
> cp -a source-folder-name new-folder-name
> will do it?

Yes, assuming that I've understood your problem correctly.

AIUI, you have a directory called ..../some_directory, which
contains a subdirectory 'dir1'. You want to copy dir1, and all
its contents to a new directory, 'dir2', so that some_directory now
contains both dir1 and dir2.

If this is correct, then
cd ..../some_directory
cp -a dir1 dir2

should work (given appropriate permissions).

David Smith Work Email: Dave.Smith@xxxxxx
STMicroelectronics Home Email: David.Smith@xxxxxxxxxxxxxxxxxxxx
Bristol, England

< Previous Next >
Follow Ups