Linux Tip of the Day – Moving files with cpio
If you have a multitude of files to move from onedirectory 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.


















































