Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
Re: [SLE] Basic linux question - copying
  • From: Nick Selby <php@xxxxxxxxxxxxx>
  • Date: Wed, 24 Apr 2002 13:11:38 +0200
  • Message-id: <5.0.0.25.2.20020424131054.02f7cac8@xxxxxxxxxxxxxxxxxx>

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.

That's it in a nutshell.


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

should work (given appropriate permissions).


Excellent! Thanks!

nick


< Previous Next >