OT (ish): How to copy hidden files/directories

Angela Kahealani angela at kahealani.com
Sat Oct 9 08:23:58 UTC 2004


On Friday 2004-10-08 21:47, CB wrote:
> I can't figure out how to do this: copy (or move) all the hidden
> files and directories contained in one directory to another
> directory.
>
> Is it as embarrasingly simple as I imagine it must be?

rsync -auvH source-dir/{*,.[^.]*} destination-dir

unlesss, one dir contains the other.

For cloning rather than updating destination-dir

rsync -auvH --delete source-dir/{*,.[^.]*} destination-dir

-- 
Copyright 2004 Angela Kahealani. All rights reserved without prejudice; 
UCC1-207. All information and transactions are non negotiable and are 
private between the parties. http://www.kahealani.com/




More information about the fedora-list mailing list