streak 0d sign in / up

Command Line · Lesson 10 of 19

cp (Copy)

0%

0 / 5 checkpoints answered

Virtual Machine Standing by
✓ Setting up Virtual Machine…
✓ Initializing Virtual Machine…
✓ Starting Desktop Services…
✓ Connecting to Interface…

Click inside the terminal, type the command, press Enter.

The cp command copies files and directories while leaving the source in place. Its basic syntax is:

cp [OPTIONS] SOURCE DESTINATION

You can copy one file to another path, copy several files into a directory, or recursively copy a directory tree.