<div dir="ltr">Even with mc, you may still have had to create a destination directory anyhow. But yes, in general I agree mc's pretty good at things like that.<div><br></div><div>Regards, BrickViking</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 December 2015 at 02:03, chris glur <span dir="ltr"><<a href="mailto:crglur@gmail.com" target="_blank">crglur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Seems ok, but must first: `mkdir dst`<br>
<br>
Using mc, artificially hides such absurd syntax/requirements.<br>
<br>
Thanks,<br>
==Chris Glur<br>
<div class="HOEnZb"><div class="h5"><br>
On 12/16/15, Andrey Gursky <<a href="mailto:andrey.gursky@e-mail.ua">andrey.gursky@e-mail.ua</a>> wrote:<br>
> On Mon, 14 Dec 2015 19:26:52 +0200<br>
> chris glur <<a href="mailto:crglur@gmail.com">crglur@gmail.com</a>> wrote:<br>
><br>
>> ... so, of course I usd mc to copy the file-tree,<br>
>> then I noticed that mc showed:--<br>
>> |/.dbus           |   4096|Dec  9 17:25|<br>
>> |/.gnuzilla       |   4096|Dec  9 17:25|<br>
>> |/.kde            |   4096|Dec  9 17:26|<br>
>> |/.links          |   4096|Dec 10 15:29|<br>
>> |/.mc             |   4096|Dec 12 12:04|<br>
>> |/.mozilla        |   4096|Dec  9 17:25|<br>
>> |/.pan2           |   4096|Dec 14 18:52|<br>
>> |/.wilybak        |   4096|Dec 11 19:08|<br>
>> |/.xine           |   4096|Dec  9 17:25|<br>
>> | .Xauthority     |    103|Dec  9 16:39|<br>
>> | .bash_history   |     43|Dec 11 11:07|<br>
>> | .blackboxrc     |   1425|Dec 11 17:52|<br>
>> | .servera~h.13990|     54|Dec  9 16:39|<br>
>> | .xinitrc        |    530|Dec  9 16:39|<br>
>> | KogiRootDir     |    931|Dec 12 12:04|<br>
>><br>
>>    and then I remembered that instead of copying the whole tree, there was<br>
>> only<br>
>> a file: KogiRootDir     |    931.<br>
>><br>
>> It seems that the problem is related to:<br>
>>   `ls /*` does NOT show <dotted Files> by default;<br>
>> whereas mc  is much better.<br>
>><br>
>> Still I want to know how to do this simple task as a command-line.<br>
><br>
> Hi Chris,<br>
><br>
> to show really *a*ll files, you can use ls -a.<br>
><br>
> To copy all files you can use:<br>
> cp -r src/* src/.[^.]* src/..?* dst/<br>
> which means all files not beginning with a dot and all files beginning with<br>
> a dot but not a .. file (which is a parent directory) and all files starting<br>
> with ..<br>
> By the way, you'd want to use -a argument to preserve file attributes (mode,<br>
> ownership, timestamps, links,..).<br>
><br>
> Regards,<br>
> Andrey<br>
><br>
_______________________________________________<br>
mc mailing list<br>
<a href="https://mail.gnome.org/mailman/listinfo/mc" rel="noreferrer" target="_blank">https://mail.gnome.org/mailman/listinfo/mc</a><br>
</div></div></blockquote></div><br></div>