Data backup is crucial. The copy command is the most basic way to back up or duplicate files in the Windows terminal. It allows you to duplicate a file from one location to another.
Try the command
Try copying a file!
Build the command
copy
sourceThe file you want to copy.
destinationWhere you want the copy to go (directory or new filename).
Terminal
C:\Users\User>copy report.txt backup.txt /y
Real-World Examples
Copy a single file:
Command Prompt
C:\Users\User>copy report.docx report_backup.docx
Copy all text files to a backup folder:
Command Prompt
C:\Users\User>copy *.txt backup\
Knowledge Check
1 / 2What happens if you copy a file to a location where a file with the same name exists?
References
These documentation links provide authoritative details for the commands used in this article.