Main Menu

Search

LINUX: FIND COMMANDS TO FIND A FILE AND COPY AND BACK IT UP IN ANOTHER DIRECTORY

Following is command to use. Below command finds showvnics file under /app1 directory and backs it up /app2 directory with .bckp extension.

find /app1 -name showvnics -exec cp {} /app2/{}.bkup \;

 


Products to which Article Applies

All Linux Operating Systems 

Search Keywords: find finding command commands unix linux file files backup back up backing backed another other directory directories copy copying copied

Article Author: Tarun Boyella

 

No comments:

Post a Comment