How to find files recursively by file type and copy them to a directory? March 12, 2023 by Tarik Try this: find . -name "*.pdf" -type f -exec cp {} ./pdfsfolder \;