Skip to content

Instantly share code, notes, and snippets.

@peterdemartini
Created December 4, 2013 17:49
Show Gist options
  • Save peterdemartini/7792190 to your computer and use it in GitHub Desktop.
Save peterdemartini/7792190 to your computer and use it in GitHub Desktop.
CPIO Copy Directory Command. Great for moving all files including hidden.
cd /path/to/original/location
find . -depth -print | cpio -pdum /path/to/new/location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment