Find and copy all PDF files to a directory
find . -name "*.pdf" -exec cp {} ~/Documents \;
Searches for all .pdf files in the current directory and subdirectories, then copies them to ~/Documents.
find . -name "*.pdf" -exec cp {} ~/Documents \;
Searches for all .pdf files in the current directory and subdirectories, then copies them to ~/Documents.