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