Main Menu

Search

LINUX: FIND COMMAND TO FIND ALL FILES IN A DIRECTORY AND COPY THEM TO ANOTHER DIRECTORY / LOCATION

Following is command to use. Below command copies all files under /app1 directory to /app2 directory.

find /app1 -type f -exec cp {} /app2 \; 

 


Products to which Article Applies

All Linux Operating Systems 

Search Keywords: linux unix file files copy copying copies all directory directories particular another other find finding location place

Article Author: Tarun Boyella

 

No comments:

Post a Comment