Re: HOW2 copy file-tree?



... so, of course I usd mc to copy the file-tree,
then I noticed that mc showed:--
|/.dbus           |   4096|Dec  9 17:25|
|/.gnuzilla       |   4096|Dec  9 17:25|
|/.kde            |   4096|Dec  9 17:26|
|/.links          |   4096|Dec 10 15:29|
|/.mc             |   4096|Dec 12 12:04|
|/.mozilla        |   4096|Dec  9 17:25|
|/.pan2           |   4096|Dec 14 18:52|
|/.wilybak        |   4096|Dec 11 19:08|
|/.xine           |   4096|Dec  9 17:25|
| .Xauthority     |    103|Dec  9 16:39|
| .bash_history   |     43|Dec 11 11:07|
| .blackboxrc     |   1425|Dec 11 17:52|
| .servera~h.13990|     54|Dec  9 16:39|
| .xinitrc        |    530|Dec  9 16:39|
| KogiRootDir     |    931|Dec 12 12:04|

   and then I remembered that instead of copying the whole tree, there was only
a file: KogiRootDir     |    931.

It seems that the problem is related to:
  `ls /*` does NOT show <dotted Files> by default;
whereas mc  is much better.

Still I want to know how to do this simple task as a command-line.

== TIA.




On 12/14/15, chris glur <crglur gmail com> wrote:
.....
no not with mc. That works fine.

I need to restore some setting to a re-booted llve-disk installation,
as part of a script.   .....

echo "AND also mc !!!"
installpkg \
/mnt/sda11/var/Pkgs/mc20090717/mc-20090714_git-i486-1.txz
echo "tests OK"

echo "AND also Kogi:/root .*<setting file/S>
 from previous conditions,
 perhaps Kogi/root should be saved before shutdown ?
 ?? and now COPY /sa10/Chroot/KogiRoot to Kogi ??"
#cp -r /sa10/Chroot/KogiRoot /root ? copies INside
#cp -r /sa10/Chroot/KogiRoot/* /root
#--copy-contents
#--target-directory=DIRECTORY
#       copy all SOURCE arguments into DIRECTORY

I just want to overwrite/update the new file-tree: /root
  with the saved: /sa10/Chroot/KogiRoot

So simple. I can't believe that this can be a problem !!

Of course with mc it's no problem, but I want it done as
part of the <setup script>.

`cp --help` is a disaster, too.

==TIA.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]