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

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



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?
> 

Go to the source directory, then

find . -print | cpio -pmud <dest>

If you want it verbose, use

find . -print | cpio -pmudv <dest>

These preserve permissions and such during the copy...

Chuck


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