[Chicago-talk] Merging two dir's into a third

Mike Pastore mike at oobak.org
Thu Feb 19 12:15:08 CST 2004

On Thu, 2004-02-19 at 12:10, Steven Lembark wrote:
> -- Mike Pastore <mike at oobak.org>
> > Am I missing something??
> cp -r looses ctime, mtime (reset due to new file). Might
> also loose ownership (unless you own the originals) and
> mods (uses umask by default).

I don't believe this functionality was originally requested, however you
can use `cp -p' to satisfy these issues. I'm also quite fond of `cp -a',
which is equivalent to `cp -dpR' (do not dereference symbolic links,
preserve mode, ownership, and timestamps, and copy directories


More information about the Chicago-talk mailing list