Back to Blog
Arnošt Havelka

The Copy Command

Duplicate files with ease.

Start Interactive Lesson
The Copy Command

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 / 2

What 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.

Up Next

The Move Command

Relocate files and rename folders.