Find files
find source_directory -type f -name [name] -exec [action] {} ./destination_directory \;
-> searches files according to search criteria and copies or moves them all to a specified directory
-action -> can be
mv
to move orcp
to copy
Note: set the -type f attribute to select only files and put ; to end the command
Last updated