Skip to content

Instantly share code, notes, and snippets.

@avkosme
Last active October 19, 2022 18:31
Show Gist options
  • Select an option

  • Save avkosme/bf4d55cff3898923626b1a7bd68e3cb1 to your computer and use it in GitHub Desktop.

Select an option

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