What if you could copy hundreds of files in one command without missing a single one?
Why cp (copy files and directories) in Linux CLI? - Purpose & Use Cases
Imagine you have a folder full of important photos and documents on your computer. You want to make a backup by copying them to a USB drive. Doing this by dragging and dropping each file one by one can take forever and is tiring.
Manually copying files is slow and easy to mess up. You might forget some files, copy the wrong ones, or accidentally overwrite something important. It's also hard to copy entire folders with many files without missing something.
The cp command lets you quickly copy files and whole directories with just one line. It handles many files at once, keeps folder structures intact, and can even copy hidden files. This saves time and avoids mistakes.
copy file1.txt to USB copy file2.txt to USB copy file3.txt to USB
cp -r /home/user/photos /media/usbdrive/
With cp, you can easily back up, duplicate, or copy large sets of files and folders in seconds, freeing you from tedious manual work.
You just finished editing a project folder and want to save a copy before making changes. Using cp -r project_folder project_backup instantly creates a full backup, so you can work safely.
Manual copying is slow and error-prone.
cp copies files and directories quickly and reliably.
It helps you save time and avoid mistakes when managing files.