Last active
October 19, 2022 18:31
-
-
Save avkosme/bf4d55cff3898923626b1a7bd68e3cb1 to your computer and use it in GitHub Desktop.
The best command to copy large number of files from one directory to another.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find /path/to/source/ -name "*" -exec cp -ruf "{}" /path/to/destination/ \; | |
| # Show files 50 old days long | |
| find /path/to/source/ -type f -mtime +50 -name "*" -exec ls -ltr "{}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment