[olug] Unix Tip: MOVING FILES WITH CPIO
Brian Wiese
bwiese at cotse.com
Mon Apr 7 20:56:57 UTC 2003
Whats the big purpose with using cpio, why not just "cp -xpvr /old /new"?
-x, --one-file-system
stay on this file system
-p same as --preserve=mode,ownership,timestamps
-R, -r, --recursive
copy directorie
-v, --verbose
explain what is being dones recursively ?? necessary?
What does cpio buy you? Does anyone ever use it? =)
On Mon, 7 Apr 2003 12:16:19 -0700
Unix Guru Universe <listserv at ugu.com> wrote:
|MOVING FILES WITH CPIO
|
|If you have a multitude of
|files to move from one
|directory or filesystem to
|another, here's a one liner:
|
|# find /old_directory -depth | cpio -pdmv /new_directory
|
|This will move all of the
|files under the specified
|old_directory to the
|new_directory, keeping the
|same ownership, permissions,
|and directory structure.
Brian Wiese | bwiese at cotse.com | aim: unolinuxguru
------------------------------------------------------
GnuPG/PGP key 0xF3220030 | "FREEDOM!" - Braveheart
------------------------------------------------------
This is not about Napster or DVDs. It's about your Freedom.
I'll see your DMCA and raise you a First Amendment.
http://www.anti-dmca.org
More information about the OLUG
mailing list