Linux copy (cp)

First published April 17, 2019 • Last modified on July 18, 2026 • 1 min read • 23 words
In order to copy all xml files from one directory to another without overwriting existing files with the same name:cp -vnpr /source/.xml /destination
In order to copy all xml files from one directory to another without overwriting existing files with the same name:cp -vnpr /source/*.xml /destination