Linux Terminal Glossary
›
File Operations
cp -u src.txt dst.txt
Category:
File Operations
cp -u src.txt dst.txt
Copy command
Copy only if source is newer than destination
Copies a file only if the source is newer than the destination, avoiding unnecessary overwrites. -u means 'update'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.